mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-06 23:48:53 +00:00
ges: launcher: Commit timeline before setting state
Ensuring that all operations related to commit are properly performed Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5859>
This commit is contained in:
parent
fae6fbaa6b
commit
bf420a3a20
1 changed files with 6 additions and 4 deletions
|
@ -903,10 +903,12 @@ _project_loaded_cb (GESProject * project, GESTimeline * timeline,
|
||||||
|
|
||||||
g_free (project_uri);
|
g_free (project_uri);
|
||||||
|
|
||||||
if (!self->priv->seenerrors && opts->needs_set_state &&
|
if (!self->priv->seenerrors && opts->needs_set_state) {
|
||||||
gst_element_set_state (GST_ELEMENT (self->priv->pipeline),
|
ges_timeline_commit (self->priv->timeline);
|
||||||
GST_STATE_PLAYING) == GST_STATE_CHANGE_FAILURE) {
|
if (gst_element_set_state (GST_ELEMENT (self->priv->pipeline),
|
||||||
g_error ("Failed to start the pipeline\n");
|
GST_STATE_PLAYING) == GST_STATE_CHANGE_FAILURE) {
|
||||||
|
g_error ("Failed to start the pipeline\n");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue