revid/revid.go: added handling for FileFPS var from vidgrind

This commit is contained in:
Saxon 2020-01-27 13:54:43 +10:30
parent 755545c80b
commit cae7e55723
1 changed files with 7 additions and 0 deletions

View File

@ -859,6 +859,13 @@ func (r *Revid) Update(vars map[string]string) error {
break break
} }
r.cfg.MOGHistory = uint(v) r.cfg.MOGHistory = uint(v)
case "FileFPS":
v, err := strconv.Atoi(value)
if err != nil {
r.cfg.Logger.Log(logger.Warning, pkg+"invalid FileFPS var", "value", value)
break
}
r.cfg.FileFPS = v
case "mode": case "mode":
r.cfg.Loop = false r.cfg.Loop = false
if value == "Loop" { if value == "Loop" {