diff --git a/src/main.ts b/src/main.ts index 814ed76..d896c29 100644 --- a/src/main.ts +++ b/src/main.ts @@ -89,7 +89,7 @@ app.whenReady().then(() => { const tmpFile = getNewFilename(file, "TMP_"); let outFile; - const audioTracks = getNumberOfAudioTracks(file); + let audioTracks = getNumberOfAudioTracks(file); switch (audioTracks.length) { case 2: @@ -120,6 +120,8 @@ app.whenReady().then(() => { // Delete the temporary video file deleteFile(tmpFile); + audioTracks = getNumberOfAudioTracks(outFile); + break; default: // Other cases: no merge needed