bu5hm4n pushed a commit to branch master. http://git.enlightenment.org/core/enlightenment.git/commit/?id=b32086d40213dec9afbe2d3deba6f170ced5fe0d
commit b32086d40213dec9afbe2d3deba6f170ced5fe0d Author: Marcel Hollerbach <[email protected]> Date: Tue Jul 4 09:59:19 2017 +0200 emixer: use a better name for the sink inputs it seems applications are using a higher quality name with the property PA_PROP_APPLICATION_NAME. ref T5664 --- src/modules/mixer/lib/backends/pulseaudio/pulse.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/modules/mixer/lib/backends/pulseaudio/pulse.c b/src/modules/mixer/lib/backends/pulseaudio/pulse.c index fa869175c..a92c4ae92 100644 --- a/src/modules/mixer/lib/backends/pulseaudio/pulse.c +++ b/src/modules/mixer/lib/backends/pulseaudio/pulse.c @@ -330,7 +330,14 @@ _sink_input_cb(pa_context *c EINA_UNUSED, const pa_sink_input_info *info, info->name); input->idx = info->index; - input->base.name = eina_stringshare_add(info->name); + + Eina_Strbuf *input_name; + + input_name = eina_strbuf_new(); + eina_strbuf_append(input_name, pa_proplist_gets(info->proplist, PA_PROP_APPLICATION_NAME)); + eina_strbuf_append(input_name, ":"); + eina_strbuf_append(input_name, info->name); + input->base.name = eina_strbuf_release(input_name); input->base.volume = _pa_cvolume_convert(&info->volume); input->base.mute = !!info->mute; EINA_LIST_FOREACH(ctx->sinks, l, s) --
