Skip to content

Commit

Permalink
chore(HLS): Change bad warning (#6981)
Browse files Browse the repository at this point in the history
Regression of #6378
(only in debug builds)
  • Loading branch information
avelad committed Jul 3, 2024
1 parent 2d6c2af commit c6e2c43
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/hls/hls_parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -638,9 +638,10 @@ shaka.hls.HlsParser = class {
if (goog.DEBUG) {
const firstSequenceStartTime =
mediaSequenceToStartTime.values().next().value;
shaka.log.warning(
firstSequenceStartTime == segment0.startTime,
'Sequence number map is not ordered as expected!');
if (firstSequenceStartTime != segment0.startTime) {
shaka.log.warning(
'Sequence number map is not ordered as expected!');
}
}
for (const [sequence, start] of mediaSequenceToStartTime) {
if (start == segment0.startTime) {
Expand Down

0 comments on commit c6e2c43

Please sign in to comment.