mirror of https://bitbucket.org/ausocean/av.git
Merge branch 'master' into writerate
This commit is contained in:
commit
d13d02e21a
|
@ -456,18 +456,14 @@ 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 {
|
||||
} 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")
|
||||
r.wg.Add(1)
|
||||
|
|
Loading…
Reference in New Issue