mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-26 17:46:26 +03:00
ce8e25dfe7
This was broken in "Replace find/get callbacks with SegmentIndex" because automated tests for SegmentBase did not cover multiple Representations with different index/init ranges. Once the parsing became async in the previous change, the index information was being pulled from the last Representation parsed, rather than any specific one. This fixes the issue by making a shallow copy of the parsing context, as was already done for SegmentTemplate. SegmentList is synchronous, so it was not affected. Issue #1339 Change-Id: I09c606c464b49c99d35d1031734b64872cfa6599