Skip to content

Commit

Permalink
fix(HLS): Check that segment 0 exists (#7208)
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad committed Aug 26, 2024
1 parent 659bc7e commit e1ecc44
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/hls/hls_parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -673,6 +673,9 @@ shaka.hls.HlsParser = class {
// also start 6 seconds apart in presentation time.

const segment0 = segmentIndex.earliestReference();
if (!segment0) {
continue;
}
if (segment0.syncTime == null) {
shaka.log.alwaysError('Missing EXT-X-PROGRAM-DATE-TIME for stream',
streamInfo.getUris(),
Expand Down

0 comments on commit e1ecc44

Please sign in to comment.