gst-device-monitor: Use g_printerr instead of g_error

g_error is meant to be used for programmer errors (causes an abort),
not for expected runtime errors.
This commit is contained in:
Nirbheek Chauhan 2016-01-06 10:12:43 +05:30 committed by Tim-Philipp Müller
parent 0d18717912
commit bc90841c7d

View file

@ -231,8 +231,10 @@ main (int argc, char **argv)
timer = g_timer_new ();
if (!gst_device_monitor_start (app.monitor))
g_error ("Failed to start device monitor!");
if (!gst_device_monitor_start (app.monitor)) {
g_printerr ("Failed to start device monitor!\n");
return -1;
}
GST_INFO ("Took %.2f seconds", g_timer_elapsed (timer, NULL));