summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTanu Kaskinen <tanu.kaskinen@linux.intel.com>2013-12-14 09:29:24 +0200
committerTanu Kaskinen <tanu.kaskinen@linux.intel.com>2013-12-14 09:34:21 +0200
commit643eb5bae2c58246657cdfebe19002da2cee292e (patch)
treea30e7ed0d3ad4deb3eb06e0e2198a4048731f89e
parent6f954c76745acaaa8cae5a569702e23e83115b3b (diff)
bluetooth: Fix profile priority comparison
BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=72414
-rw-r--r--src/modules/bluetooth/module-bluetooth-policy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/bluetooth/module-bluetooth-policy.c b/src/modules/bluetooth/module-bluetooth-policy.c
index a5e99855..06f9f1ca 100644
--- a/src/modules/bluetooth/module-bluetooth-policy.c
+++ b/src/modules/bluetooth/module-bluetooth-policy.c
@@ -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;
}