summaryrefslogtreecommitdiffstats
path: root/src/pulsecore/sink.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2009-03-04 05:27:14 +0100
committerLennart Poettering <lennart@poettering.net>2009-03-04 05:32:19 +0100
commitecbc320a4c219b40795e0462de6f37d610003c88 (patch)
treea7176e6295e85f5cd982408888c6d2a001e6b327 /src/pulsecore/sink.c
parentbffa8be8cd208fbc4d3cd44c34be47e9e47b086f (diff)
make suspend state of monitor source follow the suspend state of the sink it belongs to
Diffstat (limited to 'src/pulsecore/sink.c')
-rw-r--r--src/pulsecore/sink.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pulsecore/sink.c b/src/pulsecore/sink.c
index 11334037..ed68dd8e 100644
--- a/src/pulsecore/sink.c
+++ b/src/pulsecore/sink.c
@@ -326,6 +326,9 @@ static int sink_set_state(pa_sink *s, pa_sink_state_t state) {
pa_sink_input_kill(i);
else if (i->suspend)
i->suspend(i, state == PA_SINK_SUSPENDED);
+
+ if (s->monitor_source)
+ pa_source_sync_suspend(s->monitor_source);
}
return 0;