GESTimelinePipeline: Sync state of newly added element to container

This commit is contained in:
Edward Hervey 2009-12-11 15:17:25 +01:00
parent 5396476e7c
commit 82af34bb87

View file

@ -203,6 +203,7 @@ pad_added_cb (GstElement * timeline, GstPad * pad, GESTimelinePipeline * self)
/* Adding tee */
chain->tee = gst_element_factory_make ("tee", NULL);
gst_bin_add (GST_BIN_CAST (self), chain->tee);
gst_element_sync_state_with_parent (chain->tee);
/* Linking pad to tee */
sinkpad = gst_element_get_pad (chain->tee, "sink");