mirror of
https://github.com/imputnet/cobalt.git
synced 2025-07-18 03:08:30 +00:00
fix: check processingPriority against NaN
This commit is contained in:
parent
ee4992b8ad
commit
8cd0bd3542
@ -44,7 +44,7 @@ function pipe(from, to, done) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getCommand(args) {
|
function getCommand(args) {
|
||||||
if (env.processingPriority != '' && process.platform !== "win32") {
|
if (!isNaN(env.processingPriority) && process.platform !== "win32") {
|
||||||
return ['nice', ['-n', env.processingPriority.toString(), ffmpeg, ...args]]
|
return ['nice', ['-n', env.processingPriority.toString(), ffmpeg, ...args]]
|
||||||
}
|
}
|
||||||
return [ffmpeg, args]
|
return [ffmpeg, args]
|
||||||
|
Loading…
Reference in New Issue
Block a user