avdtpsrc: Honour initial transport volume setting before connection
authorArun Raghavan <arun@arunraghavan.net>
Wed, 12 Jun 2019 08:12:14 +0000 (10:12 +0200)
committerArun Raghavan <arun@arunraghavan.net>
Wed, 12 Jun 2019 08:18:27 +0000 (10:18 +0200)
We make the binding go from the avdtpsrc to the transport, so that any
initial setting before a connection made is used.

sys/bluez/gstavdtputil.c

index 3e58e12..3a11bd2 100644 (file)
@@ -724,9 +724,9 @@ gst_avdtp_connection_get_caps (GstAvdtpConnection * conn)
 
 void
 gst_avdtp_connection_notify_volume (GstAvdtpConnection * conn,
-    GObject * target, const gchar * property)
+    GObject * source, const gchar * property)
 {
-  g_object_bind_property (conn->data.conn, "volume", target, property,
+  g_object_bind_property (source, property, conn->data.conn, "volume",
       G_BINDING_BIDIRECTIONAL | G_BINDING_SYNC_CREATE);
 }