Skip to content

Commit ad3d5f7

Browse files
authored
Revert a change that was wrong regarding segment availability (Dash-Industry-Forum#4650)
1 parent d6ed706 commit ad3d5f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/dash/utils/SegmentsUtils.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,9 @@ function getSegment(representation, duration, presentationStartTime, mediaStartT
147147
function isSegmentAvailable(timelineConverter, representation, segment, isDynamic) {
148148
const voPeriod = representation.adaptation.period;
149149

150-
// Avoid requesting segments that overlap the period boundary for periods that are not the last
150+
// Avoid requesting segments for which the start time overlaps the period boundary
151151
if (isFinite(voPeriod.duration) && voPeriod.start + voPeriod.duration <= segment.presentationStartTime) {
152-
return !isDynamic && voPeriod.nextPeriodId === null;
152+
return false
153153
}
154154

155155
if (isDynamic) {

0 commit comments

Comments
 (0)