From bc90841c7d069fcdb0e6d681f1cbf8a326e080f3 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Wed, 6 Jan 2016 10:12:43 +0530 Subject: [PATCH] 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. --- tools/gst-device-monitor.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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)); -- 2.7.4