mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
device-manager: don't override application routing requests
module-device-manager doesn't change the routing of those streams that have been explicitly routed by the user, which is good. Similarly, it should leave those streams alone whose routing was decided by the application that created the stream. This patch implements that. BugLink: https://github.com/wwmm/pulseeffects/issues/99
This commit is contained in:
parent
3d698d17af
commit
d6a0dcc3a2
1 changed files with 4 additions and 2 deletions
|
|
@ -658,7 +658,8 @@ static void route_sink_input(struct userdata *u, pa_sink_input *si) {
|
|||
pa_assert(u);
|
||||
pa_assert(u->do_routing);
|
||||
|
||||
if (si->save_sink)
|
||||
/* Don't override user or application routing requests. */
|
||||
if (si->save_sink || si->sink_requested_by_application)
|
||||
return;
|
||||
|
||||
/* Skip this if it is already in the process of being moved anyway */
|
||||
|
|
@ -729,7 +730,8 @@ static void route_source_output(struct userdata *u, pa_source_output *so) {
|
|||
pa_assert(u);
|
||||
pa_assert(u->do_routing);
|
||||
|
||||
if (so->save_source)
|
||||
/* Don't override user or application routing requests. */
|
||||
if (so->save_source || so->source_requested_by_application)
|
||||
return;
|
||||
|
||||
if (so->direct_on_input)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue