Skip to content

Commit

Permalink
fix(HLS): Avoid "Possible encoding problem detected!" when is a prelo…
Browse files Browse the repository at this point in the history
…ad reference (#5332)

Preload segments do not have a defined duration, so this log may be
wrong.
  • Loading branch information
avelad authored and joeyparrish committed Jun 20, 2023
1 parent a903937 commit 9ce8cc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/media/media_source_engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,7 @@ shaka.media.MediaSourceEngine = class {
this.append_(contentType, data);
});

if (goog.DEBUG && reference) {
if (goog.DEBUG && reference && !reference.isPreload()) {
const bufferedAfter = this.getBuffered_(contentType);
const newBuffered = shaka.media.TimeRangesUtils.computeAddedRange(
bufferedBefore, bufferedAfter);
Expand Down

0 comments on commit 9ce8cc0

Please sign in to comment.