mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-16 08:56:45 -05:00
bluez5: remove per-device codec filtering
This does not work as intended, because we no longer do a codec switch on device connect. It should be done in a different way, but since it's not used for anything right now, can as well remove it.
This commit is contained in:
parent
662fd8a1f9
commit
e42261c6d2
6 changed files with 10 additions and 38 deletions
|
|
@ -181,8 +181,7 @@ static struct spa_bt_transport *find_transport(struct impl *this, int profile, c
|
|||
|
||||
for (i = 0; i < num_codecs; ++i) {
|
||||
spa_list_for_each(t, &device->transport_list, device_link) {
|
||||
if (t->enabled &&
|
||||
(t->profile & device->connected_profiles) &&
|
||||
if ((t->profile & device->connected_profiles) &&
|
||||
(t->profile & profile) == t->profile &&
|
||||
(codecs[i] == NULL || t->a2dp_codec == codecs[i]))
|
||||
return t;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue