mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
bluez5: pass global setting dict to codec select_config / preference_cmp
The device is not know at SelectConfiguration time, so the settings argument in select_config is currently unused. Pass on a global settings dict instead, so that codec parameters can be configured. Also add settings argument to caps_preference_cmp. Bump codec API version.
This commit is contained in:
parent
a8eb146d39
commit
92b2b44954
5 changed files with 49 additions and 12 deletions
|
|
@ -151,7 +151,7 @@ static int codec_select_config(const struct a2dp_codec *codec, uint32_t flags,
|
|||
}
|
||||
|
||||
static int codec_caps_preference_cmp(const struct a2dp_codec *codec, uint32_t flags, const void *caps1, size_t caps1_size,
|
||||
const void *caps2, size_t caps2_size, const struct a2dp_codec_audio_info *info)
|
||||
const void *caps2, size_t caps2_size, const struct a2dp_codec_audio_info *info, const struct spa_dict *global_settings)
|
||||
{
|
||||
a2dp_lc3plus_hr_t conf1, conf2;
|
||||
a2dp_lc3plus_hr_t *conf;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue