diff mbox series

[RFC,BlueZ,v2,05/11] bap: discard stream when no longer in use

Message ID 52aedc2746a92078b74c06899ab6d82dd509d14d.1746374514.git.pav@iki.fi
State New
Headers show
Series [RFC,BlueZ,v2,01/11] org.bluez.MediaEndpoint: removing BAP streams with ClearConfiguration | expand

Commit Message

Pauli Virtanen May 4, 2025, 4:01 p.m. UTC
Indicate to lower layer that the stream will not be used any more.
---
 profiles/audio/bap.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/profiles/audio/bap.c b/profiles/audio/bap.c
index ee7c8bc49..dcef98148 100644
--- a/profiles/audio/bap.c
+++ b/profiles/audio/bap.c
@@ -860,6 +860,8 @@  static void setup_free(void *data)
 	if (setup->destroy)
 		setup->destroy(setup);
 
+	bt_bap_stream_discard(setup->stream);
+
 	free(setup);
 }