mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-03 09:01:50 -05:00
daemon.conf: Add boolean rescue_streams parameter
Since merge requests https://gitlab.freedesktop.org/pulseaudio/pulseaudio/merge_requests/209 and https://gitlab.freedesktop.org/pulseaudio/pulseaudio/merge_requests/216 the rescuing of streams could no longer be disabled. This patch adds a boolean parameter rescue-streams to daemon.conf which allows to disable rescuing. The parameter defaults to true (rescuing enabled).
This commit is contained in:
parent
97d0eda256
commit
b72f295597
11 changed files with 29 additions and 10 deletions
|
|
@ -1607,7 +1607,7 @@ void pa_source_output_fail_move(pa_source_output *o) {
|
|||
return;
|
||||
|
||||
/* Can we move the source output to the default source? */
|
||||
if (pa_source_output_may_move_to(o, o->core->default_source)) {
|
||||
if (o->core->rescue_streams && pa_source_output_may_move_to(o, o->core->default_source)) {
|
||||
if (pa_source_output_finish_move(o, o->core->default_source, false) >= 0)
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue