mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
bluetooth: a2dp-codec-util: Use lower index for higher priority
Instead of letting a codec with higher index have higher priority, just use a lower index for high priority. This allows the for loop iterating over the codecs to be written in a straightforward manner and not have to iterate from the end. FWIW Pipewire does the same. Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/440>
This commit is contained in:
parent
f7c84b3217
commit
fca6a2fd68
1 changed files with 1 additions and 1 deletions
|
|
@ -29,7 +29,7 @@
|
|||
extern const pa_a2dp_codec pa_a2dp_codec_sbc;
|
||||
|
||||
/* This is list of supported codecs. Their order is important.
|
||||
* Codec with higher index has higher priority. */
|
||||
* Codec with lower index has higher priority. */
|
||||
const pa_a2dp_codec *pa_a2dp_codecs[] = {
|
||||
&pa_a2dp_codec_sbc,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue