d702ed19 by David LaPalomento

Merge pull request #466 from videojs/fix-resetsrc

(development branch) fix calling abort on a sourceBuffer whose mediaSource.readyState != open
2 parents a544105d b110c82c
...@@ -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 };
......