Merged in raspivid-exec-fix (pull request #63)

revid: used args... in exec rather than strings.join to fix bug

Approved-by: kortschak <dan@kortschak.io>
This commit is contained in:
Saxon Milton 2018-09-24 04:34:09 +00:00
commit 9bf4ee4bf0
1 changed files with 2 additions and 4 deletions

View File

@ -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