mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
gst-validate: print error message when starting the pipeline fails
Instead of just exiting silently
This commit is contained in:
parent
e48eadad75
commit
185d10bf79
1 changed files with 3 additions and 1 deletions
|
@ -150,8 +150,10 @@ main (int argc, gchar ** argv)
|
||||||
|
|
||||||
g_print ("Starting pipeline\n");
|
g_print ("Starting pipeline\n");
|
||||||
if (gst_element_set_state (pipeline,
|
if (gst_element_set_state (pipeline,
|
||||||
GST_STATE_PLAYING) == GST_STATE_CHANGE_FAILURE)
|
GST_STATE_PLAYING) == GST_STATE_CHANGE_FAILURE) {
|
||||||
|
g_print ("Pipeline failed to go to PLAYING state\n");
|
||||||
goto exit;
|
goto exit;
|
||||||
|
}
|
||||||
|
|
||||||
g_print ("Pipeline started\n");
|
g_print ("Pipeline started\n");
|
||||||
g_main_loop_run (mainloop);
|
g_main_loop_run (mainloop);
|
||||||
|
|
Loading…
Reference in a new issue