diff --git a/revid/revid.go b/revid/revid.go index 179ec64e..5b9b2fb0 100644 --- a/revid/revid.go +++ b/revid/revid.go @@ -456,17 +456,13 @@ func (r *Revid) Start() error { } r.cfg.Logger.Log(logger.Info, "revid reset") - // Calculate delay between frames based on FileFPS for Video or + // Calculate delay between frames based on FileFPS for video or // between recording periods for audio. d := time.Duration(0) if r.cfg.Input == config.InputAudio { - if r.cfg.RecPeriod != 0 { - d = time.Duration(r.cfg.RecPeriod * float64(time.Second)) - } - } else { - if r.cfg.FileFPS != 0 { - d = time.Duration(1000/r.cfg.FileFPS) * time.Millisecond - } + d = time.Duration(r.cfg.RecPeriod * float64(time.Second)) + } else if r.cfg.FileFPS != 0 { + d = time.Duration(1000/r.cfg.FileFPS) * time.Millisecond } r.cfg.Logger.Log(logger.Debug, "starting input processing routine")