gst-device-monitor: stop calling gst_device_monitor_get_devices()

See https://gitlab.freedesktop.org/gstreamer/gstreamer/merge_requests/280
This commit is contained in:
Mathieu Duponchelle 2019-09-11 01:29:23 +02:00 committed by Mathieu Duponchelle
parent 1f2028e2ef
commit dff5399e87

View file

@ -288,7 +288,6 @@ main (int argc, char **argv)
GTimer *timer; GTimer *timer;
DevMonApp app; DevMonApp app;
GstBus *bus; GstBus *bus;
GList *devices;
setlocale (LC_ALL, ""); setlocale (LC_ALL, "");
@ -365,19 +364,6 @@ main (int argc, char **argv)
GST_INFO ("Took %.2f seconds", g_timer_elapsed (timer, NULL)); 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) { if (follow) {
g_print ("Monitoring devices, waiting for devices to be removed or " g_print ("Monitoring devices, waiting for devices to be removed or "
"new devices to be added...\n"); "new devices to be added...\n");