Skip to content

Commit

Permalink
Check for isNaN in hasEnoughSpaceToAppend
Browse files Browse the repository at this point in the history
  • Loading branch information
dsilhavy committed Jun 28, 2021
1 parent 1474c4e commit f2d4a03
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 @@ -983,7 +983,7 @@ function BufferController(config) {

function hasEnoughSpaceToAppend() {
const totalBufferedTime = getTotalBufferedTime();
return (totalBufferedTime < criticalBufferLevel);
return (isNaN(totalBufferedTime) || totalBufferedTime < criticalBufferLevel);
}

function setSeekTarget(value) {
Expand Down

0 comments on commit f2d4a03

Please sign in to comment.