diff --git a/revid/Config.go b/revid/Config.go index 4e0a40b4..b23a697f 100644 --- a/revid/Config.go +++ b/revid/Config.go @@ -242,7 +242,7 @@ func (config *Config) Validate(r *revid) error { r.Log(Warning, "No bitrate defined, defaulting!") config.Bitrate = defaultBitrate } else { - if integer, err := strconv.Atoi(config.Bitrate); ineger < 0 || err != nil { + if integer, err := strconv.Atoi(config.Bitrate); integer < 0 || err != nil { return errors.New("Bad bitrate defined in config!") } } diff --git a/revid/Revid.go b/revid/Revid.go index fa79a550..0f0eb8ea 100644 --- a/revid/Revid.go +++ b/revid/Revid.go @@ -363,7 +363,7 @@ func (r *revid) outputClips() { } r.Log(Error, err.Error()) if r.config.Output == NativeRtmp && errorCount > 5 { - reboot() + r.reboot() } } // let the ringbuffer know that we're done with the memory we grabbed when