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