summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTanu Kaskinen <tanuk@iki.fi>2016-03-04 15:23:28 +0200
committerArun Raghavan <git@arunraghavan.net>2016-05-03 09:18:28 +0530
commita99eb81db363427d706ee28db73dd33999291cf3 (patch)
tree8d73b5584e0b2c359c8ed7366fc6d91406747235
parentfe4f96d56ee2e8818790b3d562a22d26192591c7 (diff)
downloadpulseaudio-a99eb81db363427d706ee28db73dd33999291cf3.tar.gz
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.
-rw-r--r--src/modules/module-switch-on-port-available.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/module-switch-on-port-available.c b/src/modules/module-switch-on-port-available.c
index e5e1e9dce..9bfb43f34 100644
--- a/src/modules/module-switch-on-port-available.c
+++ b/src/modules/module-switch-on-port-available.c
@@ -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