mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
bluez5: clear codec switch flag on device connnection change
Codec switch flag should be cleared on device connection status change, to deal with codec_switched() callback not being called if device is suddenly disconnected.
This commit is contained in:
parent
0306855b5b
commit
689e2d0cc9
1 changed files with 2 additions and 0 deletions
|
|
@ -1098,6 +1098,8 @@ static void set_initial_profile(struct impl *this)
|
||||||
struct spa_bt_transport *t;
|
struct spa_bt_transport *t;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
this->switching_codec = false;
|
||||||
|
|
||||||
if (this->supported_codecs)
|
if (this->supported_codecs)
|
||||||
free(this->supported_codecs);
|
free(this->supported_codecs);
|
||||||
this->supported_codecs = spa_bt_device_get_supported_a2dp_codecs(
|
this->supported_codecs = spa_bt_device_get_supported_a2dp_codecs(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue