Skip to content

Commit

Permalink
🐛 isCache safe margin
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidZhang73 committed Mar 1, 2022
1 parent d406aec commit a518712
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/worker/video-process-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ onmessage = async (event) => {
offscreen.convertToBlob({ type: 'image/jpeg' }).then(blob => {
postMessage({ frame: blob, frameIndex: frameIndexList.indexOf(_currentFrameIndex) })
})
if (frameIndexList.indexOf(_currentFrameIndex) >= frameIndexList.length - 2) { // TODO: hack, safe margin
if (frameIndexList.indexOf(_currentFrameIndex) >= frameIndexList.length - 3) { // TODO: hack, safe margin
postMessage({ done: true })
}
}
Expand Down

0 comments on commit a518712

Please sign in to comment.