Explicitly compare lastSegmentLoaded_'s uri and byterange.
Chery-picked Katrina's pull request to clean up the tree.
Showing
1 changed file
with
2 additions
and
1 deletions
... | @@ -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 | ... | ... |
-
Please register or sign in to post a comment