mirror of
https://github.com/imputnet/cobalt.git
synced 2024-12-28 02:26:10 +00:00
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
|
@ -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