mirror of https://bitbucket.org/ausocean/av.git
Doing another error check
This commit is contained in:
parent
0f8b7c3370
commit
1f9a14a0ee
|
@ -356,6 +356,7 @@ func (r *revidInst) outputClips() {
|
|||
r.Log(Debug, err.Error())
|
||||
}
|
||||
}
|
||||
r.Log(Info, "Not outputting clips anymore!")
|
||||
}
|
||||
|
||||
// senClipToFile writes the passed clip to a file
|
||||
|
@ -494,8 +495,12 @@ func (r *revidInst) setupInputForRaspivid() error {
|
|||
"-fps", r.config.FrameRate,
|
||||
)
|
||||
}
|
||||
stdout, _ := r.cmd.StdoutPipe()
|
||||
err := r.cmd.Start()
|
||||
stdout, err := r.cmd.StdoutPipe()
|
||||
if err != nil {
|
||||
r.Log(Error, err.Error())
|
||||
return err
|
||||
}
|
||||
err = r.cmd.Start()
|
||||
r.inputReader = bufio.NewReader(stdout)
|
||||
if err != nil {
|
||||
r.Log(Error, err.Error())
|
||||
|
|
Loading…
Reference in New Issue