bluez5: media-sink: don't fail A2DP duplex sink if remote idles

Don't emit node error for A2DP duplex sink channel, or when BAP server.
These can occur under normal conditions (remote side suspends
transport), and are not errors.
This commit is contained in:
Pauli Virtanen 2023-04-18 22:26:18 +03:00
parent b59766c3d1
commit b619616c2a

View file

@ -1949,7 +1949,7 @@ static void transport_state_changed(void *data,
else
transport_stop(this);
if (state < SPA_BT_TRANSPORT_STATE_ACTIVE && was_started) {
if (state < SPA_BT_TRANSPORT_STATE_ACTIVE && was_started && !this->is_duplex && this->is_output) {
/*
* If establishing connection fails due to remote end not activating
* the transport, we won't get a write error, but instead see a transport