Skip to content

Commit

Permalink
Ignore spurious updateend events on IE11
Browse files Browse the repository at this point in the history
Issue #251

Change-Id: Ifd4375a40795adb7f514f0a89383a1825361dae0
  • Loading branch information
joeyparrish committed Jan 27, 2016
1 parent f21a725 commit 9c817ce
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/media/source_buffer_manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,11 @@ shaka.media.SourceBufferManager.prototype.onSourceBufferUpdateEnd_ =
shaka.log.v1(this.logPrefix_(), 'onSourceBufferUpdateEnd_');

shaka.asserts.assert(!this.sourceBuffer_.updating);
shaka.asserts.assert(this.operationPromise_);
if (!this.operationPromise_) {
// Spurious event, which seems to happen on IE11 with rapid seeking.
// Ignore.
return;
}

this.operationPromise_.resolve();
this.operationPromise_ = null;
Expand Down

0 comments on commit 9c817ce

Please sign in to comment.