Doing another error check

This commit is contained in:
Unknown 2018-03-14 19:54:11 +10:30
parent 0f8b7c3370
commit 1f9a14a0ee
1 changed files with 7 additions and 2 deletions

View File

@ -356,6 +356,7 @@ func (r *revidInst) outputClips() {
r.Log(Debug, err.Error()) r.Log(Debug, err.Error())
} }
} }
r.Log(Info, "Not outputting clips anymore!")
} }
// senClipToFile writes the passed clip to a file // senClipToFile writes the passed clip to a file
@ -494,8 +495,12 @@ func (r *revidInst) setupInputForRaspivid() error {
"-fps", r.config.FrameRate, "-fps", r.config.FrameRate,
) )
} }
stdout, _ := r.cmd.StdoutPipe() stdout, err := r.cmd.StdoutPipe()
err := r.cmd.Start() if err != nil {
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())