The mixer state is defined as offline only if the associated stream is removed.

Signed-off-by: David Guibert <david.guib...@gmail.com>

---
 src/mixer/pulse_mixer.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/src/mixer/pulse_mixer.c b/src/mixer/pulse_mixer.c
index 5e4f294..481fec2 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;
-- 
tg: (36dab87..) t/offline-only-removed-sink (depends on: master)

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Musicpd-dev-team mailing list
Musicpd-dev-team@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/musicpd-dev-team

Reply via email to