mpegtsmux: fix ported segment init

This commit is contained in:
Mark Nauwelaerts 2012-06-16 19:17:49 +02:00
parent 6229305d7b
commit 893d6eb2a3

View file

@ -1613,12 +1613,7 @@ mpegtsdemux_prepare_srcpad (MpegTsMux * mux)
(mux->m2ts_mode ? M2TS_PACKET_LENGTH : NORMAL_TS_PACKET_LENGTH),
NULL);
seg.rate = 1.0;
seg.format = GST_FORMAT_TIME;
seg.start = 0;
seg.stop = -1;
seg.position = 0;
gst_segment_init (&seg, GST_FORMAT_TIME);
new_seg = gst_event_new_segment (&seg);
/* Set caps on src pad from our template and push new segment */