diff --git a/revid/Revid.go b/revid/Revid.go index a0a1970a..d34072fd 100644 --- a/revid/Revid.go +++ b/revid/Revid.go @@ -560,12 +560,12 @@ func (r *revid) setupInputForRaspivid() error { name := "raspivid" r.cmd = &exec.Cmd{ Path: name, - Args: append([]string{name}, arguments), + Args: append([]string{name}, arguments...), } if filepath.Base(name) == name { if lp, err := exec.LookPath(name); err != nil { r.Log(Error, err.Error()) - return err + return err } else { r.cmd.Path = lp }