From 24e9ed69ca3e47f9edc5c71d7f1d12cfe76237ba Mon Sep 17 00:00:00 2001 From: Saxon Date: Mon, 26 Aug 2019 09:26:35 +0930 Subject: [PATCH] revid/config.go: got rid of remaining references of 'RefreshPeriod' which is now MinPeriod --- revid/config.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/revid/config.go b/revid/config.go index e0870c40..7807b52c 100644 --- a/revid/config.go +++ b/revid/config.go @@ -109,7 +109,7 @@ const ( defaultRotation = 0 // Degrees defaultWidth = 1280 defaultHeight = 720 - defaultRefreshPeriod = 100 + defaultMinPeriod = 100 defaultClipDuration = 0 defaultQuantization = 30 defaultBitrate = 400000 @@ -393,8 +393,8 @@ func (c *Config) Validate() error { } if c.MinPeriod == 0 { - c.Logger.Log(logger.Info, pkg+"no intra refresh defined, defaulting", "intraRefresh", defaultRefreshPeriod) - c.MinPeriod = defaultRefreshPeriod + c.Logger.Log(logger.Info, pkg+"no min period defined, defaulting", "MinPeriod", defaultMinPeriod) + c.MinPeriod = defaultMinPeriod } else if c.MinPeriod < 0 { return errors.New("refresh period is less than 0") }