mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
bluez5: replace codec->bap/asha flags with codec->kind enum
Indicate codec type with enum instead of bool flags. This is in preparation of moving also HFP to media codecs.
This commit is contained in:
parent
83c644fe09
commit
4e0d0c5f0b
17 changed files with 97 additions and 46 deletions
|
|
@ -417,7 +417,7 @@ static struct stream *stream_create(struct spa_bt_transport *t, struct group *gr
|
|||
sink = false;
|
||||
}
|
||||
|
||||
if (!t->media_codec->bap || !t->media_codec->get_interval) {
|
||||
if (t->media_codec->kind != MEDIA_CODEC_BAP || !t->media_codec->get_interval) {
|
||||
res = -EINVAL;
|
||||
goto fail;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue