mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
bluetooth: Fix profile priority comparison
BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=72414
This commit is contained in:
parent
6f954c7674
commit
643eb5bae2
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue