diff mbox series

[BlueZ,v1,4/4] bap: Fix not setting metatada

Message ID 20240731135718.429604-4-luiz.dentz@gmail.com
State New
Headers show
Series [BlueZ,v1,1/4] client/player: Fix not setting config target_latency with edpoint.config | expand

Commit Message

Luiz Augusto von Dentz July 31, 2024, 1:57 p.m. UTC
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

Fix not using bt_bap_stream_metadata when configuring a new stream as
the endpoint/client may have set it.
---
 profiles/audio/bap.c | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox series

Patch

diff --git a/profiles/audio/bap.c b/profiles/audio/bap.c
index 53f430d66..a2c5a546d 100644
--- a/profiles/audio/bap.c
+++ b/profiles/audio/bap.c
@@ -1523,6 +1523,10 @@  static void setup_config(void *data, void *user_data)
 		return;
 	}
 
+	if (setup->metadata && setup->metadata->iov_len)
+		bt_bap_stream_metadata(setup->stream, setup->metadata, NULL,
+								NULL);
+
 	bt_bap_stream_set_user_data(setup->stream, ep->path);
 }