From 1c6cd54477c0c467293d28601d51fdf931237a4b Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Tue, 16 May 2017 23:20:44 +0900 Subject: [PATCH] dashdemux: Initialize sidx_position to GST_CLOCK_TIME_NONE If a manifest has non-zero presentation time offset (i.e., earliest presentation time specified by sidx box is not zero), the initial sidx position shouldn't be zero. Since we cannot define exact sidx position until parsing sidx box, set the value to unknown. https://bugzilla.gnome.org/show_bug.cgi?id=782693 --- ext/dash/gstdashdemux.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/dash/gstdashdemux.c b/ext/dash/gstdashdemux.c index cac4832936..6c0ade7f7c 100644 --- a/ext/dash/gstdashdemux.c +++ b/ext/dash/gstdashdemux.c @@ -723,6 +723,7 @@ gst_dash_demux_setup_all_streams (GstDashDemux * demux) (stream), tags); stream->index = i; stream->pending_seek_ts = GST_CLOCK_TIME_NONE; + stream->sidx_position = GST_CLOCK_TIME_NONE; if (active_stream->cur_adapt_set && active_stream->cur_adapt_set->RepresentationBase && active_stream->cur_adapt_set->RepresentationBase->ContentProtection) {