From 1f9a14a0ee0dae60ebb1072b5e9bdac6a4e1a39c Mon Sep 17 00:00:00 2001 From: Unknown Date: Wed, 14 Mar 2018 19:54:11 +1030 Subject: [PATCH] Doing another error check --- revid/RevidInstance.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/revid/RevidInstance.go b/revid/RevidInstance.go index 3d741260..d8ca0540 100644 --- a/revid/RevidInstance.go +++ b/revid/RevidInstance.go @@ -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())