Skip to content

Commit

Permalink
fix: Fix SegmentPrefetch in some cases (shaka-project#6199)
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad authored and Vasanthavanan-Devarajan committed Feb 20, 2024
1 parent 8d1d9cf commit 20dc664
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions lib/media/segment_prefetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ shaka.media.SegmentPrefetch = class {
this.abortPrefetchedSegment_(reference);
}
}
this.clearInitSegments_();
}

/**
Expand Down
3 changes: 1 addition & 2 deletions lib/media/streaming_engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -1220,8 +1220,7 @@ shaka.media.StreamingEngine = class {
for (const stream of this.audioPrefetchMap_.keys()) {
const prefetch = this.audioPrefetchMap_.get(stream);
prefetch.evict(presentationTime);
prefetch.prefetchSegmentsByTime(presentationTime,
/* fetchInit= */ true);
prefetch.prefetchSegmentsByTime(presentationTime);
}
}

Expand Down

0 comments on commit 20dc664

Please sign in to comment.