From ad3d5f7c2885d23cf11c8035d6a698284ddd324c Mon Sep 17 00:00:00 2001 From: Daniel Silhavy Date: Thu, 12 Dec 2024 15:34:46 +0100 Subject: [PATCH] Revert a change that was wrong regarding segment availability (#4650) --- src/dash/utils/SegmentsUtils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dash/utils/SegmentsUtils.js b/src/dash/utils/SegmentsUtils.js index 499712b154..8161dc548e 100644 --- a/src/dash/utils/SegmentsUtils.js +++ b/src/dash/utils/SegmentsUtils.js @@ -147,9 +147,9 @@ function getSegment(representation, duration, presentationStartTime, mediaStartT function isSegmentAvailable(timelineConverter, representation, segment, isDynamic) { const voPeriod = representation.adaptation.period; - // Avoid requesting segments that overlap the period boundary for periods that are not the last + // Avoid requesting segments for which the start time overlaps the period boundary if (isFinite(voPeriod.duration) && voPeriod.start + voPeriod.duration <= segment.presentationStartTime) { - return !isDynamic && voPeriod.nextPeriodId === null; + return false } if (isDynamic) {