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() {
this.cancelSegmentXhr();
this.cancelKeyXhr();
if (this.sourceBuffer) {
if (this.sourceBuffer && this.mediaSource.readyState === 'open') {
this.sourceBuffer.abort();
}
};
......