Skip to content

Commit

Permalink
Do not clear entire buffer when seeking to 0 (#3706)
Browse files Browse the repository at this point in the history
Co-authored-by: dsilhavy <daniel.silhavy@fokus.fraunhofer.de>
  • Loading branch information
lkinasiewicz and dsilhavy committed Jul 19, 2021
1 parent f5dac37 commit 7ddda30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/streaming/controllers/BufferController.js
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ function BufferController(config) {
}

// if no target time is provided we clear everyhing
if (!seekTime || isNaN(seekTime)) {
if ((!seekTime && seekTime !== 0) || isNaN(seekTime)) {
clearRanges.push({
start: ranges.start(0),
end: ranges.end(ranges.length - 1) + BUFFER_END_THRESHOLD
Expand Down

0 comments on commit 7ddda30

Please sign in to comment.