mirror of https://bitbucket.org/ausocean/av.git
revid: simplify
This commit is contained in:
parent
6ecce76602
commit
7cf449b5c9
|
@ -459,11 +459,9 @@ func (r *Revid) Start() error {
|
|||
// 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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue