Skip to content

Commit

Permalink
Fix a bug in the calculation of the segment availability end time whe…
Browse files Browse the repository at this point in the history
…n the value is set to Infinite
  • Loading branch information
dsilhavy committed May 4, 2021
1 parent 42d584b commit 49e4f5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dash/utils/SegmentsUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ function isSegmentAvailable(timelineConverter, representation, segment, isDynami
// SAET = SAST + TSBD + seg@duration

const refTime = timelineConverter.getAvailabilityWindowAnchorTime();
return segment.availabilityStartTime.getTime() <= refTime && segment.availabilityEndTime.getTime() >= refTime;
return segment.availabilityStartTime.getTime() <= refTime && (!isFinite(segment.availabilityEndTime) || segment.availabilityEndTime.getTime() >= refTime);
}

return true;
Expand Down

0 comments on commit 49e4f5c

Please sign in to comment.