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
This commit is contained in:
Mark Nauwelaerts 2012-07-20 13:35:29 +02:00
parent 6dbc6ad3cf
commit 7247d136e5

View file

@ -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);