]> code.delx.au - pulseaudio/commitdiff
bluetooth: Fix profile priority comparison
authorTanu Kaskinen <tanu.kaskinen@linux.intel.com>
Sat, 14 Dec 2013 07:29:24 +0000 (09:29 +0200)
committerTanu Kaskinen <tanu.kaskinen@linux.intel.com>
Sat, 14 Dec 2013 07:34:21 +0000 (09:34 +0200)
BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=72414
src/modules/bluetooth/module-bluetooth-policy.c

index a5e998558f68494dda1113917298065cf5706508..06f9f1ca19a192919539af37958de158750a1591 100644 (file)
@@ -147,7 +147,7 @@ static pa_card_profile *find_best_profile(pa_card *card) {
 
         if (result == NULL ||
             (profile->available == PA_AVAILABLE_YES && result->available == PA_AVAILABLE_UNKNOWN) ||
-            (profile->available == result->available && profile->priority > profile->priority))
+            (profile->available == result->available && profile->priority > result->priority))
             result = profile;
     }