Bus add watch not working properly for Device monitor

Tim Müller tim at centricular.com
Fri Jul 10 04:30:58 PDT 2015


On Fri, 2015-07-10 at 13:12 +0200, Alicia Romero wrote:

Hi Alicia,

> GstDeviceMonitor *monitor = gst_device_monitor_new();
> GstBus *bus = gst_device_monitor_get_bus(monitor);
> gst_bus_add_watch(bus, message_func, NULL);
> gst_object_unref(bus);
> 
> 
> But it is not working for me. I add a new video device, but it never
> enters message_func.
> 
> Any idea why is this happening?

Does it work in

 gst-device-monitor-1.0 -f

?

Are you running a GLib main loop?

Cheers
 -Tim

-- 
Tim Müller, Centricular Ltd - http://www.centricular.com



More information about the gstreamer-devel mailing list