From 7247d136e5068e867171fc82b2bee74fd5e8197e Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Fri, 20 Jul 2012 13:35:29 +0200 Subject: [PATCH] qtdemux: properly transform incoming segment event ... which is really useful for proper push mode seeking. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=680278 --- gst/isomp4/qtdemux.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst/isomp4/qtdemux.c b/gst/isomp4/qtdemux.c index 2586b1d9a1..bc4c4e5ddd 100644 --- a/gst/isomp4/qtdemux.c +++ b/gst/isomp4/qtdemux.c @@ -1661,7 +1661,8 @@ gst_qtdemux_handle_sink_event (GstPad * sinkpad, GstObject * parent, } /* accept upstream's notion of segment and distribute along */ - segment.time = segment.start; + segment.format = GST_FORMAT_TIME; + segment.position = segment.time = segment.start; segment.duration = demux->segment.duration; segment.base = gst_segment_to_running_time (&demux->segment, GST_FORMAT_TIME, demux->segment.position);