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: David Guibert <david.guibert@gmail.com>
This commit is contained in:
David Guibert 2009-03-16 22:41:18 +01:00 committed by Max Kellermann
parent 0ad56e0f8e
commit 2a52d49536

View File

@ -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;