Skip to content

Commit

Permalink
gst-device-monitor: stop calling gst_device_monitor_get_devices()
Browse files Browse the repository at this point in the history
  • Loading branch information
MathieuDuponchelle committed Sep 17, 2019
1 parent 1f2028e commit dff5399
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions tools/gst-device-monitor.c
Expand Up @@ -288,7 +288,6 @@ main (int argc, char **argv)
GTimer *timer;
DevMonApp app;
GstBus *bus;
GList *devices;

setlocale (LC_ALL, "");

Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit dff5399

Please sign in to comment.