gst-validate: print error message when starting the pipeline fails

Instead of just exiting silently
This commit is contained in:
Thiago Santos 2013-08-26 20:31:22 -03:00
parent e48eadad75
commit 185d10bf79

View file

@ -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);