diff --git a/src/modules/stream/types.js b/src/modules/stream/types.js index af4aa2e5..071cb6d0 100644 --- a/src/modules/stream/types.js +++ b/src/modules/stream/types.js @@ -25,7 +25,7 @@ function killProcess(p) { } function getCommand(args) { - if (!isNaN(env.processingPriority)) { + if (typeof env.processingPriority === 'number' && !isNaN(env.processingPriority)) { return ['nice', ['-n', env.processingPriority.toString(), ffmpeg, ...args]] } return [ffmpeg, args]