rawparse: send segment event in time format also in push mode
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Fri, 22 Mar 2013 19:40:58 +0000 (19:40 +0000)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Fri, 22 Mar 2013 19:44:04 +0000 (19:44 +0000)
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

gst/rawparse/gstrawparse.c

index f315d5ed650e0852489cd9023ad999151f4d24a4..a9a6e7aaef635633056e0bcd755f409479e4bf50 100644 (file)
@@ -671,6 +671,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);