Skip to content

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 (#3298)
  • Loading branch information
dsilhavy committed Jun 17, 2020
1 parent da9d60c commit e8da9a5
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 e8da9a5

Please sign in to comment.