1 From: Tanu Kaskinen <tanu.kaskinen@linux.intel.com>
2 Date: Fri, 9 May 2014 11:25:28 +0300
3 Subject: sink: Link monitor source before activating port
5 The port activation hook callbacks may want to use the monitor source.
7 Change-Id: I5d5c51171a78162dacb3286983cb560001e79ba1
8 Signed-off-by: Jaska Uimonen <jaska.uimonen@intel.com>
10 src/pulsecore/sink.c | 4 ++--
11 1 file changed, 2 insertions(+), 2 deletions(-)
13 diff --git a/src/pulsecore/sink.c b/src/pulsecore/sink.c
14 index 695e471..191b560 100644
15 --- a/src/pulsecore/sink.c
16 +++ b/src/pulsecore/sink.c
17 @@ -669,11 +669,11 @@ void pa_sink_put(pa_sink* s) {
19 pa_assert_se(sink_set_state(s, PA_SINK_IDLE) == 0);
21 + pa_source_put(s->monitor_source);
24 pa_device_port_active_changed(s->active_port, true);
26 - pa_source_put(s->monitor_source);
28 pa_subscription_post(s->core, PA_SUBSCRIPTION_EVENT_SINK | PA_SUBSCRIPTION_EVENT_NEW, s->index);
29 pa_hook_fire(&s->core->hooks[PA_CORE_HOOK_SINK_PUT], s);