Skip to content

Commit

Permalink
fix(HLS): Fix getAvailableSegment_ function (#6915)
Browse files Browse the repository at this point in the history
Regression of #6898
  • Loading branch information
avelad authored Jun 26, 2024
1 parent 339bab4 commit 7bbf612
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/hls/hls_parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -4167,8 +4167,8 @@ shaka.hls.HlsParser = class {
let segmentIndex = this.isLive_() ?
Math.trunc((segments.length - 1) / 2) : 0;
let segment = segments[segmentIndex];
while (segment.status == shaka.media.SegmentReference.Status.MISSING &&
segmentIndex < segments.length) {
while (segment.getStatus() == shaka.media.SegmentReference.Status.MISSING &&
(segmentIndex + 1) < segments.length) {
segmentIndex ++;
segment = segments[segmentIndex];
}
Expand Down

0 comments on commit 7bbf612

Please sign in to comment.