From: Thibault Saunier Date: Tue, 9 Apr 2013 03:02:14 +0000 (-0300) Subject: timeline: call sync_state_with_parent when adding a child X-Git-Tag: 1.19.3~493^2~1925 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4039468b57301136fad64eea6b4248b8ae31ae0d;p=platform%2Fupstream%2Fgstreamer.git timeline: call sync_state_with_parent when adding a child --- diff --git a/ges/ges-timeline-pipeline.c b/ges/ges-timeline-pipeline.c index 525d39f..5aabca1 100644 --- a/ges/ges-timeline-pipeline.c +++ b/ges/ges-timeline-pipeline.c @@ -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; } diff --git a/ges/ges-timeline.c b/ges/ges-timeline.c index 73763b2..189a095 100644 --- a/ges/ges-timeline.c +++ b/ges/ges-timeline.c @@ -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; }