Diff between 72b02df3b2b40a3ac38832e2e80a16eb6b3bef04 and 61d3e447f9d47f03e5cbd55b805d7841ccc93319

Changed Files

File Additions Deletions Status
profiles/audio/transport.c +2 -0 modified

Full Patch

diff --git a/profiles/audio/transport.c b/profiles/audio/transport.c
index 2682a2e..bc550b7 100644
--- a/profiles/audio/transport.c
+++ b/profiles/audio/transport.c
@@ -2651,6 +2651,7 @@ void *media_transport_get_stream(struct media_transport *transport)
 void media_transport_update_delay(struct media_transport *transport,
 							uint16_t delay)
 {
+#ifdef HAVE_A2DP
 	struct a2dp_transport *a2dp = transport->data;
 
 	/* Check if delay really changed */
@@ -2665,6 +2666,7 @@ void media_transport_update_delay(struct media_transport *transport,
 	g_dbus_emit_property_changed(btd_get_dbus_connection(),
 					transport->path,
 					MEDIA_TRANSPORT_INTERFACE, "Delay");
+#endif /* HAVE_A2DP */
 }
 
 struct btd_device *media_transport_get_dev(struct media_transport *transport)