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
This commit is contained in:
Seungha Yang 2016-12-23 15:31:34 +09:00 committed by Sebastian Dröge
parent db7f8ec3b9
commit c0540fb773

View file

@ -1124,7 +1124,8 @@ gst_dash_demux_stream_update_fragment_info (GstAdaptiveDemuxStream * stream)
if (GST_ADAPTIVE_DEMUX_STREAM_NEED_HEADER (stream) && isombff) { if (GST_ADAPTIVE_DEMUX_STREAM_NEED_HEADER (stream) && isombff) {
gst_dash_demux_stream_update_headers_info (stream); gst_dash_demux_stream_update_headers_info (stream);
dashstream->sidx_base_offset = stream->fragment.index_range_end + 1; 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 /* request only the index to be downloaded as we need to reposition the
* stream to a subsegment */ * stream to a subsegment */
return GST_FLOW_OK; return GST_FLOW_OK;