fix audio track issue
This commit is contained in:
parent
2ef8bda147
commit
ee64d06e0a
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue