mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 02:01:12 +00:00
timeline: call sync_state_with_parent when adding a child
This commit is contained in:
parent
78d80c8ca4
commit
4039468b57
2 changed files with 6 additions and 0 deletions
|
@ -823,6 +823,9 @@ ges_timeline_pipeline_add_timeline (GESTimelinePipeline * pipeline,
|
|||
g_signal_connect (timeline, "no-more-pads", (GCallback) no_more_pads_cb,
|
||||
pipeline);
|
||||
|
||||
/* FIXME Check if we should rollback if we can't sync state */
|
||||
gst_element_sync_state_with_parent (GST_ELEMENT (timeline));
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
|
@ -2502,6 +2502,9 @@ ges_timeline_add_track (GESTimeline * timeline, GESTrack * track)
|
|||
g_list_free (objects);
|
||||
}
|
||||
|
||||
/* FIXME Check if we should rollback if we can't sync state */
|
||||
gst_element_sync_state_with_parent (GST_ELEMENT (track));
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue