bluez5: fix queueing codec switches

Make queueing a codec switch work properly.  When receiving the dbus
reply, it should move to latest one. Others should be discarded.

Previously, it instead hit an assert, if there were more than two
queued.
This commit is contained in:
Pauli Virtanen 2021-02-24 00:20:32 +02:00 committed by Wim Taymans
parent 8768cf1b68
commit 6114ca7c4a
2 changed files with 19 additions and 15 deletions

View file

@ -388,7 +388,6 @@ struct spa_bt_device {
struct spa_list remote_endpoint_list;
struct spa_list transport_list;
struct spa_list codec_switch_list;
struct spa_bt_a2dp_codec_switch *active_codec_switch;
struct spa_hook_list listener_list;
bool added;