timeline: call sync_state_with_parent when adding a child
authorThibault Saunier <thibault.saunier@collabora.com>
Tue, 9 Apr 2013 03:02:14 +0000 (00:02 -0300)
committerThibault Saunier <thibault.saunier@collabora.com>
Tue, 9 Apr 2013 03:11:18 +0000 (00:11 -0300)
ges/ges-timeline-pipeline.c
ges/ges-timeline.c

index 525d39f6d21fe936bea736574d51faa0ed56dff4..5aabca1616f9ac1766791f778ac933fb8b761283 100644 (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;
 }
 
index 73763b2f64837ae05d8eef94657385f231b29a1c..189a095e95f9f917569094e4f7455da03abb0106 100644 (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;
 }