revid: fix logging for completed stream with error

This commit is contained in:
Dan Kortschak 2018-10-05 08:17:41 +09:30
parent 81997cd68e
commit 4f5a47b1e5
1 changed files with 2 additions and 5 deletions

View File

@ -464,11 +464,8 @@ func (r *Revid) startRaspivid() error {
r.config.Logger.Log(smartlogger.Info, pkg+"reading camera data")
err = r.lexTo(r.encoder, stdout, delay)
if err != nil {
return err
}
r.config.Logger.Log(smartlogger.Info, pkg+"not trying to read from camera anymore")
return nil
r.config.Logger.Log(smartlogger.Info, pkg+"finished reading camera data")
return err
}
// setupInputForFile sets things up for getting input from a file