From: Nirbheek Chauhan Date: Wed, 6 Jan 2016 04:42:43 +0000 (+0530) Subject: gst-device-monitor: Use g_printerr instead of g_error X-Git-Tag: 1.19.3~511^2~3096 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bc90841c7d069fcdb0e6d681f1cbf8a326e080f3;p=platform%2Fupstream%2Fgstreamer.git 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. --- diff --git a/tools/gst-device-monitor.c b/tools/gst-device-monitor.c index 83ff8f0..c0a8ec1 100644 --- a/tools/gst-device-monitor.c +++ b/tools/gst-device-monitor.c @@ -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));