mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-04-18 06:46:28 -04:00
bluez5: fix disabling HFP codecs via bluez5.codecs
backend-native should not advertise disabled HFP codecs as available.
This commit is contained in:
parent
7df106bc25
commit
6e8e234e61
1 changed files with 3 additions and 0 deletions
|
|
@ -986,8 +986,11 @@ static void make_available_codec_list(struct impl *backend, struct spa_bt_device
|
|||
|
||||
for (i = 0; backend->codecs[i]; ++i) {
|
||||
const struct media_codec *codec = backend->codecs[i];
|
||||
|
||||
if (codec->kind != MEDIA_CODEC_HFP)
|
||||
continue;
|
||||
if (!spa_bt_get_hfp_codec(backend->monitor, codec->codec_id))
|
||||
continue;
|
||||
if (device_supports_codec(backend, device, codec->id))
|
||||
codec_list_add(codec_list, codec);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue