Skip to content
This repository has been archived by the owner on Jan 12, 2019. It is now read-only.

Commit

Permalink
Remove comments that are no longer needed
Browse files Browse the repository at this point in the history
The code these describes was removed a while back but these vestigial comments remained
  • Loading branch information
jrivera committed Dec 14, 2015
1 parent 2306350 commit 2286959
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/videojs-hls.js
Original file line number Diff line number Diff line change
Expand Up @@ -926,15 +926,11 @@ videojs.HlsHandler.prototype.fillBuffer = function(mediaIndex) {
segmentInfo.playlist.mediaSequence + mediaIndex) + this.playlists.expired_;
}

// If we have seeked into a non-buffered time-range, remove all buffered
// time-ranges because they could have been incorrectly placed originally
if (this.tech_.seeking() && outsideBufferedRanges) {
// If there are discontinuities in the playlist, we can't be sure of anything
// related to time so we reset the timestamp offset and start appending data
// anew on every seek
if (segmentInfo.playlist.discontinuityStarts.length) {
// Now that the forward buffer is clear, we have to set timestamp offset to
// the start of the buffered region
segmentInfo.timestampOffset = segmentTimestampOffset;
}
} else if (segment.discontinuity && currentBuffered.length) {
Expand Down

0 comments on commit 2286959

Please sign in to comment.