tools:ges-launch: Do not set pipeline state before the timeline is ready

When we are loading a project
This commit is contained in:
Thibault Saunier 2014-09-19 17:14:51 +02:00
parent 2fb33d69f8
commit 2d3769f079

View file

@ -974,10 +974,12 @@ main (int argc, gchar ** argv)
gst_bus_add_signal_watch (bus);
g_signal_connect (bus, "message", G_CALLBACK (bus_message_cb), mainloop);
if (needs_set_state && gst_element_set_state (GST_ELEMENT (pipeline),
GST_STATE_PLAYING) == GST_STATE_CHANGE_FAILURE) {
g_error ("Failed to start the pipeline\n");
return 1;
if (!load_path) {
if (needs_set_state && gst_element_set_state (GST_ELEMENT (pipeline),
GST_STATE_PLAYING) == GST_STATE_CHANGE_FAILURE) {
g_error ("Failed to start the pipeline\n");
return 1;
}
}
g_main_loop_run (mainloop);