From 2a52d495364998c6afc2f9533d0bd9965f22a291 Mon Sep 17 00:00:00 2001 From: David Guibert Date: Mon, 16 Mar 2009 22:41:18 +0100 Subject: 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 --- src/mixer/pulse_mixer.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/mixer') diff --git a/src/mixer/pulse_mixer.c b/src/mixer/pulse_mixer.c index 5bb6061fe..a300a29fa 100644 --- a/src/mixer/pulse_mixer.c +++ b/src/mixer/pulse_mixer.c @@ -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; -- cgit v1.2.3