mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2026-03-14 05:33:55 -04:00
make suspend state of monitor source follow the suspend state of the sink it belongs to
This commit is contained in:
parent
bffa8be8cd
commit
ecbc320a4c
3 changed files with 23 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue