Skip to content
This repository has been archived by the owner on Jan 16, 2023. It is now read-only.

Commit

Permalink
Check if dvr window is finite before trying to find a request at the …
Browse files Browse the repository at this point in the history
…beginning of the dvr window (Dash-Industry-Forum#3298)
  • Loading branch information
dsilhavy authored and jeffcunat committed Jul 6, 2020
1 parent 6f983e0 commit 1174cce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/streaming/StreamProcessor.js
Expand Up @@ -668,7 +668,7 @@ function StreamProcessor(config) {
let startTime;

// Make sure that we have at least a valid request for the end of the DVR window, otherwise we might try forever
if (getFragmentRequest(currentRepresentationInfo, liveEdge - dvrWindowSize + dvrWindowSafetyMargin, {
if (!isFinite(dvrWindowSize) || getFragmentRequest(currentRepresentationInfo, liveEdge - dvrWindowSize + dvrWindowSafetyMargin, {
ignoreIsFinished: true
})) {

Expand Down

0 comments on commit 1174cce

Please sign in to comment.