<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Hi List,</div>
<div>I am testing the new feature Device Monitor, and I have this small test:</div>
<div> </div>
<div>static gboolean message_func(GstBus *bus, GstMessage *message, gpointer user_data) {<br/>
switch (GST_MESSAGE_TYPE (message)) {<br/>
case GST_MESSAGE_DEVICE_ADDED:<br/>
g_print("Device Added");<br/>
break;<br/>
case GST_MESSAGE_DEVICE_REMOVED:<br/>
g_print("Device Removed");<br/>
break;<br/>
default:<br/>
break;<br/>
}<br/>
return G_SOURCE_CONTINUE;<br/>
}</div>
<div> </div>
<div>(...)</div>
<div> GstDeviceMonitor *monitor=gst_device_monitor_new ();
<div> GstBus *bus = gst_device_monitor_get_bus(monitor);<br/>
gst_bus_add_watch(bus, message_func, NULL);</div>
<div> (..)</div>
<div> gst_device_monitor_start (monitor);</div>
<div>(..)<br/>
GMainLoop *loop = g_main_loop_new (NULL, FALSE);<br/>
g_main_loop_run (loop);</div>
<div> /* Free resources */<br/>
gst_object_unref (bus);</div>
<div> gst_device_monitor_stop (monitor);<br/>
gst_object_unref (monitor);</div>
<div> </div>
<div>The problem is that if a plug in a new camera, I never get the message GST_MESSAGE_DEVICE_ADDED.</div>
<div>I am using gstreamer Version 1.4.0 and I am working in Linux.</div>
<div> </div>
<div>Am doing something wrong?</div>
<div>Thanks!!</div>
<div> </div>
<div> </div>
<div> </div>
</div></div></body></html>