Bus add watch not working properly for Device monitor

Alicia Romero alromor84 at gmail.com
Fri Jul 10 04:37:44 PDT 2015


I am not running a GLib main loop.  Does it mean it only works if a main
loop is running?

Thanks!

2015-07-10 13:30 GMT+02:00 Tim Müller <tim at centricular.com>:

> 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
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20150710/fd1a86b1/attachment.html>


More information about the gstreamer-devel mailing list