mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
bluez5: improve a2dp codec api
Pass dict to select_config to influence the selection Make a method to validate a config. Add spa_dict to the codec to pass more info around.
This commit is contained in:
parent
1ca3998b41
commit
ece8a95c29
5 changed files with 9 additions and 7 deletions
|
|
@ -76,7 +76,7 @@ static int codec_fill_caps(const struct a2dp_codec *codec, uint32_t flags,
|
|||
|
||||
static int codec_select_config(const struct a2dp_codec *codec, uint32_t flags,
|
||||
const void *caps, size_t caps_size,
|
||||
const struct spa_audio_info *info, uint8_t config[A2DP_MAX_CAPS_SIZE])
|
||||
const struct spa_dict *info, uint8_t config[A2DP_MAX_CAPS_SIZE])
|
||||
{
|
||||
a2dp_aptx_t conf;
|
||||
size_t actual_conf_size = codec_get_caps_size(codec);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue