16f9203f by Katrina Ellison Geltman Committed by David LaPalomento

Explicitly compare lastSegmentLoaded_'s uri and byterange.

Chery-picked Katrina's pull request to clean up the tree.
1 parent f4e07878
...@@ -894,7 +894,8 @@ videojs.HlsHandler.prototype.fillBuffer = function(mediaIndex) { ...@@ -894,7 +894,8 @@ videojs.HlsHandler.prototype.fillBuffer = function(mediaIndex) {
894 // we have entered a state where we are fetching the same segment, 894 // we have entered a state where we are fetching the same segment,
895 // try to walk forward 895 // try to walk forward
896 if (this.lastSegmentLoaded_ && 896 if (this.lastSegmentLoaded_ &&
897 this.lastSegmentLoaded_ === this.playlistUriToUrl(segment.uri)) { 897 this.playlistUriToUrl(this.lastSegmentLoaded_.uri) === this.playlistUriToUrl(segment.uri) &&
898 this.lastSegmentLoaded_.byterange === segment.byterange) {
898 return this.fillBuffer(mediaIndex + 1); 899 return this.fillBuffer(mediaIndex + 1);
899 } 900 }
900 901
......