From c4467901dcaaf8dd42ad202d4076f7339f95c1b8 Mon Sep 17 00:00:00 2001 From: delichik Date: Mon, 20 May 2024 17:58:09 +0800 Subject: [PATCH] fix(Stream): options in Compile is not used --- run.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/run.go b/run.go index c08c9f2..7a47c2e 100644 --- a/run.go +++ b/run.go @@ -268,6 +268,9 @@ func (s *Stream) Compile(options ...CompilationOption) *exec.Cmd { for _, option := range GlobalCommandOptions { option(cmd) } + for _, option := range options { + option(s, cmd) + } if LogCompiledCommand { log.Printf("compiled command: ffmpeg %s\n", strings.Join(args, " ")) }