mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 06:58:56 +00:00
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:
parent
0d18717912
commit
bc90841c7d
1 changed files with 4 additions and 2 deletions
|
@ -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));
|
||||
|
||||
|
|
Loading…
Reference in a new issue