mixer: the name has to be a stringshare

This commit is contained in:
Marcel Hollerbach 2017-07-04 16:49:54 +02:00
parent b32086d402
commit d2d3d9976b
1 changed files with 1 additions and 1 deletions

View File

@ -337,7 +337,7 @@ _sink_input_cb(pa_context *c EINA_UNUSED, const pa_sink_input_info *info,
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.name = eina_stringshare_add(eina_strbuf_string_steal(input_name));
input->base.volume = _pa_cvolume_convert(&info->volume);
input->base.mute = !!info->mute;
EINA_LIST_FOREACH(ctx->sinks, l, s)