adaptivedemux: Set first segment time to segment start.

Otherwise as long as a seek wasn't executed, the position was
reported incorrectly:

gst-validate-1.0 playbin \
uri=http://dev-iplatforms.kw.bbc.co.uk/dash/news24-avc3/news24.php

https://bugzilla.gnome.org/show_bug.cgi?id=744362
This commit is contained in:
Mathieu Duponchelle 2015-02-12 22:04:10 +01:00
parent 43464aa204
commit 6b864813cc

View file

@ -702,7 +702,7 @@ gst_adaptive_demux_expose_streams (GstAdaptiveDemux * demux,
}
if (first_segment)
demux->segment.start = demux->segment.position = min_pts;
demux->segment.start = demux->segment.position = demux->segment.time = min_pts;
for (iter = demux->streams; iter; iter = g_list_next (iter)) {
GstAdaptiveDemuxStream *stream = iter->data;