<div dir="ltr"><div><div><div><div>Hi List,<br></div>I add a watch to the bus of a device monitor: <br><br><br>gboolean message_func(GstBus *bus, GstMessage *message, gpointer user_data) {<br>    GstDevice *device = NULL;<br>    gchar *name = NULL;<br><br>    switch (GST_MESSAGE_TYPE (message)) {<br>    case GST_MESSAGE_DEVICE_ADDED:<br>       [...]<br>        break;<br>    case GST_MESSAGE_DEVICE_REMOVED:<br>        [...]<br>        break;<br>    default:<br>        break;<br>    }<br>    return G_SOURCE_CONTINUE;<br>}<br><br>GstDeviceMonitor *monitor = gst_device_monitor_new();<br>GstBus *bus = gst_device_monitor_get_bus(monitor);<br>gst_bus_add_watch(bus, message_func, NULL);<br>gst_object_unref(bus);<br><br></div>But it is not working for me. I add a new video device, but it never enters message_func.<br></div>Any idea why is this happening?<br><br></div>Thanks!!<br></div>