From 6b864813cce885e8fb900041f73dcf4e5264d3db Mon Sep 17 00:00:00 2001 From: Mathieu Duponchelle Date: Thu, 12 Feb 2015 22:04:10 +0100 Subject: [PATCH] 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 --- gst-libs/gst/adaptivedemux/gstadaptivedemux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst-libs/gst/adaptivedemux/gstadaptivedemux.c b/gst-libs/gst/adaptivedemux/gstadaptivedemux.c index 6568110c3e..ab040216b6 100644 --- a/gst-libs/gst/adaptivedemux/gstadaptivedemux.c +++ b/gst-libs/gst/adaptivedemux/gstadaptivedemux.c @@ -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;