globaldevicemonitor: connect sync-message signal on the right object
authorTim-Philipp Müller <tim@centricular.com>
Sun, 1 Jun 2014 22:51:20 +0000 (23:51 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sun, 1 Jun 2014 22:51:20 +0000 (23:51 +0100)
Fixes criticals at runtime and makes stuff actually work.

gst/gstglobaldevicemonitor.c

index 5366e86..73341bf 100644 (file)
@@ -114,7 +114,7 @@ gst_global_device_monitor_init (GstGlobalDeviceMonitor * self)
       GstBus *bus = gst_device_monitor_get_bus (monitor);
 
       gst_bus_enable_sync_message_emission (bus);
-      g_signal_connect (monitor, "sync-message",
+      g_signal_connect (bus, "sync-message",
           G_CALLBACK (bus_sync_message), self);
       g_ptr_array_add (self->priv->monitors, monitor);
     }