fix audio track issue

This commit is contained in:
Mylloon 2024-09-19 00:52:24 +02:00
parent 2ef8bda147
commit ee64d06e0a
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -89,7 +89,7 @@ app.whenReady().then(() => {
const tmpFile = getNewFilename(file, "TMP_"); const tmpFile = getNewFilename(file, "TMP_");
let outFile; let outFile;
const audioTracks = getNumberOfAudioTracks(file); let audioTracks = getNumberOfAudioTracks(file);
switch (audioTracks.length) { switch (audioTracks.length) {
case 2: case 2:
@ -120,6 +120,8 @@ app.whenReady().then(() => {
// Delete the temporary video file // Delete the temporary video file
deleteFile(tmpFile); deleteFile(tmpFile);
audioTracks = getNumberOfAudioTracks(outFile);
break; break;
default: default:
// Other cases: no merge needed // Other cases: no merge needed