b110c82c by Josep Vinyals Committed by jforbes

fix calling abort on a sourceBuffer whose mediaSource.readyState isn't 'open'

1 parent a544105d
...@@ -574,7 +574,7 @@ videojs.HlsHandler.prototype.resetSrc_ = function() { ...@@ -574,7 +574,7 @@ videojs.HlsHandler.prototype.resetSrc_ = function() {
574 this.cancelSegmentXhr(); 574 this.cancelSegmentXhr();
575 this.cancelKeyXhr(); 575 this.cancelKeyXhr();
576 576
577 if (this.sourceBuffer) { 577 if (this.sourceBuffer && this.mediaSource.readyState === 'open') {
578 this.sourceBuffer.abort(); 578 this.sourceBuffer.abort();
579 } 579 }
580 }; 580 };
......