mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-17 22:00:00 +00:00
types: actually unwrap args
This commit is contained in:
parent
8b6e147b4b
commit
a14116e902
1 changed files with 4 additions and 4 deletions
|
@ -98,7 +98,7 @@ export async function streamLiveRender(streamInfo, res) {
|
||||||
}
|
}
|
||||||
args.push('-f', format, 'pipe:4');
|
args.push('-f', format, 'pipe:4');
|
||||||
|
|
||||||
process = spawn(getCommand(args), {
|
process = spawn(...getCommand(args), {
|
||||||
windowsHide: true,
|
windowsHide: true,
|
||||||
stdio: [
|
stdio: [
|
||||||
'inherit', 'inherit', 'inherit',
|
'inherit', 'inherit', 'inherit',
|
||||||
|
@ -150,7 +150,7 @@ export function streamAudioOnly(streamInfo, res) {
|
||||||
}
|
}
|
||||||
args.push('-f', streamInfo.audioFormat === "m4a" ? "ipod" : streamInfo.audioFormat, 'pipe:3');
|
args.push('-f', streamInfo.audioFormat === "m4a" ? "ipod" : streamInfo.audioFormat, 'pipe:3');
|
||||||
|
|
||||||
process = spawn(getCommand(args), {
|
process = spawn(...getCommand(args), {
|
||||||
windowsHide: true,
|
windowsHide: true,
|
||||||
stdio: [
|
stdio: [
|
||||||
'inherit', 'inherit', 'inherit',
|
'inherit', 'inherit', 'inherit',
|
||||||
|
@ -198,7 +198,7 @@ export function streamVideoOnly(streamInfo, res) {
|
||||||
}
|
}
|
||||||
args.push('-f', format, 'pipe:3');
|
args.push('-f', format, 'pipe:3');
|
||||||
|
|
||||||
process = spawn(getCommand(args), {
|
process = spawn(...getCommand(args), {
|
||||||
windowsHide: true,
|
windowsHide: true,
|
||||||
stdio: [
|
stdio: [
|
||||||
'inherit', 'inherit', 'inherit',
|
'inherit', 'inherit', 'inherit',
|
||||||
|
@ -235,7 +235,7 @@ export function convertToGif(streamInfo, res) {
|
||||||
args = args.concat(ffmpegArgs["gif"]);
|
args = args.concat(ffmpegArgs["gif"]);
|
||||||
args.push('-f', "gif", 'pipe:3');
|
args.push('-f', "gif", 'pipe:3');
|
||||||
|
|
||||||
process = spawn(getCommand(args), {
|
process = spawn(...getCommand(args), {
|
||||||
windowsHide: true,
|
windowsHide: true,
|
||||||
stdio: [
|
stdio: [
|
||||||
'inherit', 'inherit', 'inherit',
|
'inherit', 'inherit', 'inherit',
|
||||||
|
|
Loading…
Reference in a new issue