mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
switch-on-port-available: fix inverted if condition
I'm sure the original intention was to switch the port if the target port is available on the currently active profile.
This commit is contained in:
parent
fe4f96d56e
commit
a99eb81db3
1 changed files with 1 additions and 1 deletions
|
|
@ -193,7 +193,7 @@ static bool switch_to_port(pa_device_port *port) {
|
|||
pa_log_debug("Trying to switch to port %s", port->name);
|
||||
if (!pp.is_preferred_profile_active) {
|
||||
if (try_to_switch_profile(port) < 0) {
|
||||
if (pp.is_possible_profile_active)
|
||||
if (!pp.is_possible_profile_active)
|
||||
return false;
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue