Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,12 @@ let startPreparationTask = () => {
*/
let didShowQuestion = false

/**
* Question status
* @type {Boolean}
*/
let startedPrimaryTask = false

/**
* Handles prepTask.stdout
* @param {Buffer|String} data - FFmpeg Live Log Output Buffer
Expand All @@ -230,7 +236,10 @@ let startPreparationTask = () => {
}
// Send SIGKILL: preparation task succeeded
prepTask.kill('SIGKILL')
startPrimaryTask(outputDuration, outputFilename)
if (!startedPrimaryTask) {
startedPrimaryTask = true
startPrimaryTask(outputDuration, outputFilename)
}
}
}

Expand Down