Fixed []strgin to string

This commit is contained in:
Saxon1 2018-05-05 13:53:01 +09:30
parent 393583572b
commit 432e9d6c54
1 changed files with 2 additions and 2 deletions

View File

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