Commit 7247d136 authored by Mark Nauwelaerts's avatar Mark Nauwelaerts
Browse files

qtdemux: properly transform incoming segment event

... which is really useful for proper push mode seeking.

parent 6dbc6ad3
......@@ -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);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment