mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-03 09:01:54 -05:00
bluez5: lc3: handle multiple PACs in capabilities
BlueZ may send multiple PACs in the capabilities delimited by zero LTV. Handle this case by selecting the "best" one. The configuration size may also for BAP generally be different from PAC size.
This commit is contained in:
parent
37a5dca31e
commit
a372c89544
3 changed files with 124 additions and 48 deletions
|
|
@ -78,7 +78,10 @@ bool media_codec_check_caps(const struct media_codec *codec, unsigned int codec_
|
|||
if (res < 0)
|
||||
return false;
|
||||
|
||||
return ((size_t)res == caps_size);
|
||||
if (codec->bap)
|
||||
return true;
|
||||
else
|
||||
return ((size_t)res == caps_size);
|
||||
}
|
||||
|
||||
#ifdef CODEC_PLUGIN
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue