Commit bc90841c authored by Nirbheek Chauhan's avatar Nirbheek Chauhan Committed by Tim-Philipp Müller

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.
parent 0d187179
......@@ -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));
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