mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-05 10:12:20 +00:00
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:
parent
1f2028e2ef
commit
dff5399e87
1 changed files with 0 additions and 14 deletions
|
@ -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");
|
||||||
|
|
Loading…
Reference in a new issue