diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2016-01-06 10:12:43 +0530 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2016-01-14 17:51:13 +0000 |
commit | bc90841c7d069fcdb0e6d681f1cbf8a326e080f3 (patch) | |
tree | d4b9f8af11c707a0472510ef9718e136e929a974 | |
parent | 0d18717912d4a2aea693831d090717c6258fbe79 (diff) |
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.
-rw-r--r-- | tools/gst-device-monitor.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/gst-device-monitor.c b/tools/gst-device-monitor.c index 83ff8f04e..c0a8ec167 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)); |