From 1d3907561f8e67a71b378ecfd2c770a5fc1766d5 Mon Sep 17 00:00:00 2001 From: Pauli Virtanen Date: Mon, 9 Jun 2025 00:32:21 +0300 Subject: [PATCH] bap: don't show error when releasing stream When stream is released, just set transport to not playing and don't show error about missing io. --- profiles/audio/transport.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/profiles/audio/transport.c b/profiles/audio/transport.c index 244d2c4ae..9bf3b47ee 100644 --- a/profiles/audio/transport.c +++ b/profiles/audio/transport.c @@ -2147,7 +2147,8 @@ static void bap_state_changed(struct bt_bap_stream *stream, uint8_t old_state, case BT_BAP_STREAM_STATE_RELEASING: if (bt_bap_stream_io_dir(stream) == BT_BAP_BCAST_SINK) return; - break; + transport_update_playing(transport, FALSE); + goto done; } io = bt_bap_stream_get_io(stream); -- 2.47.3