This commit is contained in:
Unknown 2018-03-14 20:37:07 +10:30
parent efa02c3799
commit f40d77ea48
1 changed files with 2 additions and 6 deletions

View File

@ -495,12 +495,8 @@ func (r *revidInst) setupInputForRaspivid() error {
"-fps", r.config.FrameRate, "-fps", r.config.FrameRate,
) )
} }
stdout, err := r.cmd.StdoutPipe() stdout, _ := r.cmd.StdoutPipe()
if err != nil { err := r.cmd.Start()
r.Log(Error, err.Error())
return err
}
err = r.cmd.Start()
r.inputReader = bufio.NewReader(stdout) r.inputReader = bufio.NewReader(stdout)
if err != nil { if err != nil {
r.Log(Error, err.Error()) r.Log(Error, err.Error())