From 8df244891ad724d9628dcaff1e4de454d889678e Mon Sep 17 00:00:00 2001 From: saxon Date: Mon, 24 Sep 2018 13:21:03 +0930 Subject: [PATCH] revid: used args... in exec rather than strings.join to fix bug --- revid/revid.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/revid/revid.go b/revid/revid.go index 72af0aad..c6eb235c 100644 --- a/revid/revid.go +++ b/revid/revid.go @@ -445,10 +445,8 @@ func (r *Revid) startRaspivid() error { if r.config.VerticalFlip == Yes { args = append(args, "-vf") } - // Log all the args and create []string - argsStr := strings.Join(args, " ") - r.config.Logger.Log(smartlogger.Info, pkg+"raspivid args", "raspividArgs", argsStr) - r.cmd = exec.Command("raspivid", argsStr) + r.config.Logger.Log(smartlogger.Info, pkg+"raspivid args", "raspividArgs", strings.Join(args, " ")) + r.cmd = exec.Command("raspivid", args...) case Mjpeg: // FIXME(saxon): do above in this case too