smpte: only start collectpads2 at state change rather than init

This commit is contained in:
Mark Nauwelaerts 2012-03-22 11:45:11 +01:00
parent 440d7034f0
commit 072ac37bb2

View file

@ -363,7 +363,6 @@ gst_smpte_init (GstSMPTE * smpte)
smpte->collect = gst_collect_pads2_new ();
gst_collect_pads2_set_function (smpte->collect,
(GstCollectPads2Function) GST_DEBUG_FUNCPTR (gst_smpte_collected), smpte);
gst_collect_pads2_start (smpte->collect);
gst_collect_pads2_add_pad (smpte->collect, smpte->sinkpad1,
sizeof (GstCollectData2));