mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-22 15:18:21 +00:00
tools:ges-launch: Do not set pipeline state before the timeline is ready
When we are loading a project
This commit is contained in:
parent
2fb33d69f8
commit
2d3769f079
1 changed files with 6 additions and 4 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue