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 525d39f..5aabca1 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 73763b2..189a095 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;
 }