dashdemux: Reset SIDX related variables per fragment

SIDX's base offset (i.e., byte offset of SIDX + sidx.first_offset)
mostly vary as per fragment. Also, target SIDX index must be zero for the
new fragment.

https://bugzilla.gnome.org/show_bug.cgi?id=776200
This commit is contained in:
Seungha Yang 2017-03-14 19:47:17 +09:00 committed by Sebastian Dröge
parent a599067786
commit b65e6db8d4

View file

@ -1541,6 +1541,8 @@ gst_dash_demux_stream_advance_fragment (GstAdaptiveDemuxStream * stream)
gst_isoff_sidx_parser_clear (&dashstream->sidx_parser); gst_isoff_sidx_parser_clear (&dashstream->sidx_parser);
gst_isoff_sidx_parser_init (&dashstream->sidx_parser); gst_isoff_sidx_parser_init (&dashstream->sidx_parser);
dashstream->sidx_base_offset = 0;
dashstream->sidx_index = 0;
if (dashstream->sidx_adapter) if (dashstream->sidx_adapter)
gst_adapter_clear (dashstream->sidx_adapter); gst_adapter_clear (dashstream->sidx_adapter);