Commit dff5399e authored by Mathieu Duponchelle's avatar Mathieu Duponchelle 🐸 Committed by Mathieu Duponchelle

gst-device-monitor: stop calling gst_device_monitor_get_devices()

See gstreamer/gstreamer!280
parent 1f2028e2
......@@ -288,7 +288,6 @@ main (int argc, char **argv)
GTimer *timer;
DevMonApp app;
GstBus *bus;
GList *devices;
setlocale (LC_ALL, "");
......@@ -365,19 +364,6 @@ main (int argc, char **argv)
GST_INFO ("Took %.2f seconds", g_timer_elapsed (timer, NULL));
devices = gst_device_monitor_get_devices (app.monitor);
if (devices != NULL) {
while (devices != NULL) {
GstDevice *device = devices->data;
print_device (device, FALSE);
gst_object_unref (device);
devices = g_list_delete_link (devices, devices);
} else {
g_print ("No devices found!\n");
if (follow) {
g_print ("Monitoring devices, waiting for devices to be removed or "
"new devices to be added...\n");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment