From e8da9a5ac35a0a594bb5e6ce47e8bae4b9cb8a97 Mon Sep 17 00:00:00 2001 From: dsilhavy Date: Wed, 17 Jun 2020 16:14:37 +0200 Subject: [PATCH] Check if dvr window is finite before trying to find a request at the beginning of the dvr window (#3298) --- src/streaming/StreamProcessor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/streaming/StreamProcessor.js b/src/streaming/StreamProcessor.js index dc11be7889..7d7edbc6c2 100644 --- a/src/streaming/StreamProcessor.js +++ b/src/streaming/StreamProcessor.js @@ -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 })) {