bluetooth: Fix profile priority comparison

BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=72414
This commit is contained in:
Tanu Kaskinen 2013-12-14 09:29:24 +02:00
parent 6f954c7674
commit 643eb5bae2

View file

@ -147,7 +147,7 @@ static pa_card_profile *find_best_profile(pa_card *card) {
if (result == NULL || if (result == NULL ||
(profile->available == PA_AVAILABLE_YES && result->available == PA_AVAILABLE_UNKNOWN) || (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; result = profile;
} }