diff options
author | David Guibert <david.guibert@gmail.com> | 2009-03-16 22:41:18 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-03-17 08:40:50 +0100 |
commit | 2a52d495364998c6afc2f9533d0bd9965f22a291 (patch) | |
tree | 85c3199d4481ed2ab9487df7e2aada41d54e8ba5 | |
parent | 0ad56e0f8e8ba3474d4a95cf9abe283d65b64ebb (diff) | |
download | mpd-2a52d495364998c6afc2f9533d0bd9965f22a291.tar.gz mpd-2a52d495364998c6afc2f9533d0bd9965f22a291.tar.xz mpd-2a52d495364998c6afc2f9533d0bd9965f22a291.zip |
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>
Diffstat (limited to '')
-rw-r--r-- | 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 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; |