summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlavio Ceolin <flavio.ceolin@gmail.com>2014-08-17 01:00:22 -0300
committerFlavio Ceolin <flavio.ceolin@gmail.com>2014-08-17 01:00:22 -0300
commit1eb97bade85944673b1c9ba814bf351f4ef2fb85 (patch)
tree6aa13164410586ca380943967f3878121f59a453
parentfb44db52bb4f462fad71bd0eb8964fefd940ef28 (diff)
pulse: Fix the sink's ports after change event
-rw-r--r--src/lib/backends/pulseaudio/pulse.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/backends/pulseaudio/pulse.c b/src/lib/backends/pulseaudio/pulse.c
index b9caad3..f8daa8f 100644
--- a/src/lib/backends/pulseaudio/pulse.c
+++ b/src/lib/backends/pulseaudio/pulse.c
@@ -230,6 +230,7 @@ _sink_changed_cb(pa_context *c EINA_UNUSED, const pa_sink_info *info, int eol,
230 port->available = !!info->ports[i]->available; 230 port->available = !!info->ports[i]->available;
231 port->name = eina_stringshare_add(info->ports[i]->description ?: 231 port->name = eina_stringshare_add(info->ports[i]->description ?:
232 info->ports[i]->name); 232 info->ports[i]->name);
233 port->description = eina_stringshare_add(info->ports[i]->description);
233 sink->base.ports = eina_list_append(sink->base.ports, port); 234 sink->base.ports = eina_list_append(sink->base.ports, port);
234 if (info->ports[i]->name == info->active_port->name) 235 if (info->ports[i]->name == info->active_port->name)
235 port->active = EINA_TRUE; 236 port->active = EINA_TRUE;