revid: capturing any errors from r.lexTo

This commit is contained in:
Saxon Milton 2018-09-28 04:23:43 +00:00
parent 0c2ccf55fa
commit 6a0c9941ea
1 changed files with 4 additions and 1 deletions

View File

@ -473,7 +473,10 @@ func (r *Revid) startRaspivid() error {
r.inputReader = stdout r.inputReader = stdout
r.config.Logger.Log(smartlogger.Info, pkg+"reading camera data") r.config.Logger.Log(smartlogger.Info, pkg+"reading camera data")
r.lexTo(r.encoder, r.inputReader, delay) err = r.lexTo(r.encoder, r.inputReader, delay)
if err != nil {
return err
}
r.config.Logger.Log(smartlogger.Info, pkg+"not trying to read from camera anymore") r.config.Logger.Log(smartlogger.Info, pkg+"not trying to read from camera anymore")
return nil return nil
} }