mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
bluez5: fix BAP profiles showing
Now that we only show codec profiles, the logic that showed codecless profile for BAP has to be removed. This fixes BAP only showing off profile.
This commit is contained in:
parent
4694b48b7b
commit
dbd97020da
1 changed files with 0 additions and 9 deletions
|
|
@ -1661,15 +1661,6 @@ static struct spa_pod *build_profile(struct impl *this, struct spa_pod_builder *
|
|||
|
||||
name = spa_bt_profile_name(profile);
|
||||
|
||||
/* If we can't codec switch, emit codecless profile */
|
||||
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;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (codec) {
|
||||
media_codec = get_supported_media_codec(this, codec, &idx);
|
||||
if (media_codec == NULL) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue