mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-08 18:39:54 +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");
|
||||
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;
|
||||
}
|
||||
|
||||
g_print ("Pipeline started\n");
|
||||
g_main_loop_run (mainloop);
|
||||
|
|
Loading…
Reference in a new issue