mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-02-12 04:28:02 -05:00
bluez5: use correct A2DP profile in codec switch
We can only switch within currently connected A2DP profiles, as generally remote endpoints are available only for the connected ones.
This commit is contained in:
parent
47de1e15a4
commit
12fb9ab831
1 changed files with 1 additions and 1 deletions
|
|
@ -1485,7 +1485,7 @@ static int set_profile(struct impl *this, uint32_t profile, enum spa_bluetooth_a
|
|||
profiles = this->bt_dev->profiles & SPA_BT_PROFILE_BAP_DUPLEX;
|
||||
break;
|
||||
case DEVICE_PROFILE_A2DP:
|
||||
profiles = this->bt_dev->profiles & SPA_BT_PROFILE_A2DP_DUPLEX;
|
||||
profiles = this->bt_dev->connected_profiles & SPA_BT_PROFILE_A2DP_DUPLEX;
|
||||
break;
|
||||
default:
|
||||
profiles = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue