mirror of https://bitbucket.org/ausocean/av.git
revid: used args... in exec rather than strings.join to fix bug
This commit is contained in:
parent
49e8220a25
commit
8df244891a
|
@ -445,10 +445,8 @@ func (r *Revid) startRaspivid() error {
|
||||||
if r.config.VerticalFlip == Yes {
|
if r.config.VerticalFlip == Yes {
|
||||||
args = append(args, "-vf")
|
args = append(args, "-vf")
|
||||||
}
|
}
|
||||||
// Log all the args and create []string
|
r.config.Logger.Log(smartlogger.Info, pkg+"raspivid args", "raspividArgs", strings.Join(args, " "))
|
||||||
argsStr := strings.Join(args, " ")
|
r.cmd = exec.Command("raspivid", args...)
|
||||||
r.config.Logger.Log(smartlogger.Info, pkg+"raspivid args", "raspividArgs", argsStr)
|
|
||||||
r.cmd = exec.Command("raspivid", argsStr)
|
|
||||||
|
|
||||||
case Mjpeg:
|
case Mjpeg:
|
||||||
// FIXME(saxon): do above in this case too
|
// FIXME(saxon): do above in this case too
|
||||||
|
|
Loading…
Reference in New Issue