make suspend state of monitor source follow the suspend state of the sink it belongs to

This commit is contained in:
Lennart Poettering 2009-03-04 05:27:14 +01:00
parent bffa8be8cd
commit ecbc320a4c
3 changed files with 23 additions and 0 deletions

View file

@ -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;