From c0540fb7731d9f69ab5bc6b311cc8f5cd00a5826 Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Fri, 23 Dec 2016 15:31:34 +0900 Subject: [PATCH] dashdemux: Ensure sidx parsing when updating fragment info Fix seek fail with On-Demand profile mpd which has no indexRange attribute https://bugzilla.gnome.org/show_bug.cgi?id=776431 --- ext/dash/gstdashdemux.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/dash/gstdashdemux.c b/ext/dash/gstdashdemux.c index 5dddc20741..d99691af9d 100644 --- a/ext/dash/gstdashdemux.c +++ b/ext/dash/gstdashdemux.c @@ -1124,7 +1124,8 @@ gst_dash_demux_stream_update_fragment_info (GstAdaptiveDemuxStream * stream) if (GST_ADAPTIVE_DEMUX_STREAM_NEED_HEADER (stream) && isombff) { gst_dash_demux_stream_update_headers_info (stream); dashstream->sidx_base_offset = stream->fragment.index_range_end + 1; - if (dashstream->sidx_index != 0) { + /* sidx entries may not be available in here */ + if (dashstream->sidx_index != 0 && SIDX (dashstream)->entries) { /* request only the index to be downloaded as we need to reposition the * stream to a subsegment */ return GST_FLOW_OK;