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