mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
bluez5: fix BAP current profile
Fix BAP profiles again: make sure the current profile is indicated properly.
This commit is contained in:
parent
344be779b1
commit
b94cb5d99d
1 changed files with 4 additions and 1 deletions
|
|
@ -1373,7 +1373,10 @@ static struct spa_pod *build_profile(struct impl *this, struct spa_pod_builder *
|
||||||
name = spa_bt_profile_name(profile);
|
name = spa_bt_profile_name(profile);
|
||||||
|
|
||||||
/* If we can't codec switch, emit codecless profile */
|
/* If we can't codec switch, emit codecless profile */
|
||||||
if ((codec != 0) != can_bap_codec_switch(this)) {
|
if (current && !can_bap_codec_switch(this)) {
|
||||||
|
codec = 0;
|
||||||
|
index = get_index_from_profile(this, profile_index, codec);
|
||||||
|
} else if ((codec != 0) != can_bap_codec_switch(this)) {
|
||||||
errno = -EINVAL;
|
errno = -EINVAL;
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue