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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Indicate to lower layer that the stream will not be used any more.
---
 profiles/audio/bap.c | 2 ++
 1 file changed, 2 insertions(+)

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);
 }
 
-- 
2.49.0





[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux