timeline: call sync_state_with_parent when adding a child

This commit is contained in:
Thibault Saunier 2013-04-09 00:02:14 -03:00
parent 78d80c8ca4
commit 4039468b57
2 changed files with 6 additions and 0 deletions

View file

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

View file

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