stream/types: only use nice
if parsed processingPriority
is a number
for some reason, isNaN(true) -> false, which is technically correct, but what the fuck...
This commit is contained in:
parent
2f4e43f78f
commit
d68ce2f490
1 changed files with 1 additions and 1 deletions
|
@ -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]
|
||||
|
|
Loading…
Reference in a new issue