diff options
-rw-r--r-- | soundbox/stream.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/soundbox/stream.go b/soundbox/stream.go index cc8fcea..4b08840 100644 --- a/soundbox/stream.go +++ b/soundbox/stream.go @@ -20,7 +20,7 @@ func StreamURLContext(ctx context.Context, url string, targets []net.HardwareAdd return err } - cmd := []string{ + args := []string{ "-re", "-i", url, @@ -32,11 +32,11 @@ func StreamURLContext(ctx context.Context, url string, targets []net.HardwareAdd return err } - cmd = append(cmd, "-acodec") - cmd = append(cmd, "flac") - cmd = append(cmd, "-f") - cmd = append(cmd, "ogg") - cmd = append(cmd, fmt.Sprintf( + args = append(args, "-acodec") + args = append(args, "flac") + args = append(args, "-f") + args = append(args, "ogg") + args = append(args, fmt.Sprintf( "tcp://[%s%%%s]:%d", ip, iface.Name, @@ -44,5 +44,5 @@ func StreamURLContext(ctx context.Context, url string, targets []net.HardwareAdd )) } - return exec.CommandContext(ctx, "ffmpeg", cmd...).Run() + return exec.CommandContext(ctx, "ffmpeg", args...).Run() } |