From a14116e9020126648cfb95917eb524b6f5b84648 Mon Sep 17 00:00:00 2001 From: wukko Date: Sun, 21 Jan 2024 22:37:55 +0600 Subject: [PATCH] types: actually unwrap args --- src/modules/stream/types.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modules/stream/types.js b/src/modules/stream/types.js index 2e5dbb4..cdfb4a0 100644 --- a/src/modules/stream/types.js +++ b/src/modules/stream/types.js @@ -98,7 +98,7 @@ export async function streamLiveRender(streamInfo, res) { } args.push('-f', format, 'pipe:4'); - process = spawn(getCommand(args), { + process = spawn(...getCommand(args), { windowsHide: true, stdio: [ 'inherit', 'inherit', 'inherit', @@ -150,7 +150,7 @@ export function streamAudioOnly(streamInfo, res) { } args.push('-f', streamInfo.audioFormat === "m4a" ? "ipod" : streamInfo.audioFormat, 'pipe:3'); - process = spawn(getCommand(args), { + process = spawn(...getCommand(args), { windowsHide: true, stdio: [ 'inherit', 'inherit', 'inherit', @@ -198,7 +198,7 @@ export function streamVideoOnly(streamInfo, res) { } args.push('-f', format, 'pipe:3'); - process = spawn(getCommand(args), { + process = spawn(...getCommand(args), { windowsHide: true, stdio: [ 'inherit', 'inherit', 'inherit', @@ -235,7 +235,7 @@ export function convertToGif(streamInfo, res) { args = args.concat(ffmpegArgs["gif"]); args.push('-f', "gif", 'pipe:3'); - process = spawn(getCommand(args), { + process = spawn(...getCommand(args), { windowsHide: true, stdio: [ 'inherit', 'inherit', 'inherit',