mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-17 16:26:39 +03:00
965ef453b6
Changed SegmentIndex and SegmentIterator to iterate through regular and Partial SegmentReferences. SegmentIndex: merge(): Find all the old segments after the first new segment's start time, and replace the old ones with new segments. SegmentIterator: Use the currentPosition and currentPartialPosition pointers to iterate through the two-layer arrays. current(): Get the current SegmentReference, and get its current Partial SegmentReference if it has a Partial Segment list. Move to the next regular segment if we reached the end of the current segment's partial list. next(): If the regular segment has a partial list, go to the next Partial Segment. If reached the end of the current partial list, move to the next regular segment. If the regular segment doesn't have a partial list, move to the next regular segment. Issue #1525 Change-Id: Icb7f49e50314f15ea40bf3a74d008191ed1a9a6c