mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-12-24 08:56:42 -05:00
core: add a suspend cause flags field
This commit is contained in:
parent
3af5f8cb55
commit
00797b8b6e
16 changed files with 83 additions and 40 deletions
|
|
@ -593,7 +593,7 @@ static void unsuspend(struct userdata *u) {
|
|||
/* Let's resume */
|
||||
for (o = pa_idxset_first(u->outputs, &idx); o; o = pa_idxset_next(u->outputs, &idx)) {
|
||||
|
||||
pa_sink_suspend(o->sink, FALSE);
|
||||
pa_sink_suspend(o->sink, FALSE, PA_SUSPEND_IDLE);
|
||||
|
||||
if (PA_SINK_IS_OPENED(pa_sink_get_state(o->sink)))
|
||||
enable_output(o);
|
||||
|
|
@ -873,7 +873,7 @@ static struct output *output_new(struct userdata *u, pa_sink *sink) {
|
|||
}
|
||||
|
||||
if (PA_SINK_IS_OPENED(state) || state == PA_SINK_INIT) {
|
||||
pa_sink_suspend(sink, FALSE);
|
||||
pa_sink_suspend(sink, FALSE, PA_SUSPEND_IDLE);
|
||||
|
||||
if (PA_SINK_IS_OPENED(pa_sink_get_state(sink)))
|
||||
if (output_create_sink_input(o) < 0)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue