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 (shaka-project#5332)

Preload segments do not have a defined duration, so this log may be
wrong.
  • Loading branch information
avelad committed Jun 20, 2023
1 parent 80cacf6 commit bd18a9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/media/media_source_engine.js
Expand Up @@ -845,7 +845,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 bd18a9d

Please sign in to comment.