revid: syntax

This commit is contained in:
Trek H 2020-08-14 12:54:07 +09:30
parent 7cf449b5c9
commit 3ec7eddfed
1 changed files with 2 additions and 4 deletions

View File

@ -460,11 +460,9 @@ func (r *Revid) Start() error {
d := time.Duration(0) d := time.Duration(0)
if r.cfg.Input == config.InputAudio { if r.cfg.Input == config.InputAudio {
d = time.Duration(r.cfg.RecPeriod * float64(time.Second)) d = time.Duration(r.cfg.RecPeriod * float64(time.Second))
}
} else if r.cfg.FileFPS != 0 { } else if r.cfg.FileFPS != 0 {
d = time.Duration(1000/r.cfg.FileFPS) * time.Millisecond d = time.Duration(1000/r.cfg.FileFPS) * time.Millisecond
} }
}
r.cfg.Logger.Log(logger.Debug, "starting input processing routine") r.cfg.Logger.Log(logger.Debug, "starting input processing routine")
r.wg.Add(1) r.wg.Add(1)