rawparse: send segment event in time format also in push mode

When converting the incoming segment from byte to time format,
don't just convert the start/stop/time values, but also change
the segment format to TIME.

https://bugzilla.gnome.org/show_bug.cgi?id=696361
This commit is contained in:
Tim-Philipp Müller 2013-03-22 19:40:58 +00:00
parent 659adfdea8
commit 0002f7638b

View file

@ -672,6 +672,8 @@ gst_raw_parse_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
if (segment.format != GST_FORMAT_TIME) {
gst_event_unref (event);
segment.format = GST_FORMAT_TIME;
ret =
gst_raw_parse_convert (rp, segment.format, segment.start,
GST_FORMAT_TIME, (gint64 *) & segment.start);