1
0
mirror of https://github.com/mifi/lossless-cut.git synced 2024-11-26 12:12:39 +01:00

fix some hooks issues

This commit is contained in:
Mikael Finstad 2020-02-20 12:07:05 +08:00
parent 55131fde62
commit 6e9bb876f4

View File

@ -657,8 +657,9 @@ const App = memo(() => {
} }
}, [ }, [
effectiveRotation, apparentCutSegments, invertCutSegments, inverseCutSegments, effectiveRotation, apparentCutSegments, invertCutSegments, inverseCutSegments,
working, duration, filePath, keyframeCut, detectedFileFormat, extraStreams, working, duration, filePath, keyframeCut, detectedFileFormat,
autoMerge, customOutDir, fileFormat, haveInvalidSegs, copyStreamIds, numStreamsToCopy, autoMerge, customOutDir, fileFormat, haveInvalidSegs, copyStreamIds, numStreamsToCopy,
exportExtraStreams, nonCopiedExtraStreams,
]); ]);
// TODO use ffmpeg to capture frame // TODO use ffmpeg to capture frame
@ -826,7 +827,7 @@ const App = memo(() => {
} finally { } finally {
setWorking(false); setWorking(false);
} }
}, [customOutDir, filePath]); }, [customOutDir, filePath, mainStreams]);
function onExtractAllStreamsPress() { function onExtractAllStreamsPress() {
extractAllStreams(); extractAllStreams();