Commit 2a52d495 authored by David Guibert's avatar David Guibert Committed by Max Kellermann

pulse_mixer: keep mixer attached when another pulse sink is closed.

The mixer state is defined as offline only if the associated stream is removed. Signed-off-by: 's avatarDavid Guibert <david.guibert@gmail.com>
parent 0ad56e0f
......@@ -95,7 +95,8 @@ subscribe_cb(G_GNUC_UNUSED pa_context *c, pa_subscription_event_type_t t,
switch (t & PA_SUBSCRIPTION_EVENT_FACILITY_MASK) {
case PA_SUBSCRIPTION_EVENT_SINK_INPUT:
if ((t & PA_SUBSCRIPTION_EVENT_TYPE_MASK) ==
PA_SUBSCRIPTION_EVENT_REMOVE)
PA_SUBSCRIPTION_EVENT_REMOVE &&
pm->index == idx)
pm->online =false;
else {
pa_operation *o;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment