File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -695,10 +695,11 @@ shaka.dash.DashParser = class {
695
695
// that the complex logic of multi-Period eviction and period-flattening
696
696
// is correct. See also:
697
697
// https://github.com/shaka-project/shaka-player/issues/3169#issuecomment-823580634
698
+ const availabilityStart =
699
+ presentationTimeline . getSegmentAvailabilityStart ( ) ;
698
700
for ( const stream of Object . values ( this . streamMap_ ) ) {
699
701
if ( stream . segmentIndex ) {
700
- stream . segmentIndex . evict (
701
- presentationTimeline . getSegmentAvailabilityStart ( ) ) ;
702
+ stream . segmentIndex . evict ( availabilityStart ) ;
702
703
}
703
704
}
704
705
} else {
Original file line number Diff line number Diff line change @@ -2344,7 +2344,7 @@ shaka.media.StreamingEngine = class {
2344
2344
const segmentIndex = mediaState . stream . segmentIndex ;
2345
2345
if ( segmentIndex instanceof shaka . media . MetaSegmentIndex ) {
2346
2346
segmentIndex . evict (
2347
- this . manifest_ . presentationTimeline . getSeekRangeStart ( ) ) ;
2347
+ this . manifest_ . presentationTimeline . getSegmentAvailabilityStart ( ) ) ;
2348
2348
}
2349
2349
2350
2350
const logPrefix = shaka . media . StreamingEngine . logPrefix_ ( mediaState ) ;
You can’t perform that action at this time.
0 commit comments