Skip to content

Commit 4a7f88a

Browse files
committed
Fix lint
1 parent 16b2aa9 commit 4a7f88a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/media/media_source_engine.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1601,7 +1601,8 @@ shaka.media.MediaSourceEngine = class {
16011601

16021602
// Avoid changing timestampOffset when the difference is less than 100 ms
16031603
// from the end of the current buffer.
1604-
if (Math.abs(this.bufferEnd(contentType) - timestampOffset) < 0.1) {
1604+
const bufferEnd = this.bufferEnd(contentType);
1605+
if (bufferEnd && Math.abs(bufferEnd - timestampOffset) < 0.1) {
16051606
return;
16061607
}
16071608

0 commit comments

Comments
 (0)