mirror of https://bitbucket.org/ausocean/av.git
revid/config.go: got rid of remaining references of 'RefreshPeriod' which is now MinPeriod
This commit is contained in:
parent
b9cd6b3f13
commit
24e9ed69ca
|
@ -109,7 +109,7 @@ const (
|
||||||
defaultRotation = 0 // Degrees
|
defaultRotation = 0 // Degrees
|
||||||
defaultWidth = 1280
|
defaultWidth = 1280
|
||||||
defaultHeight = 720
|
defaultHeight = 720
|
||||||
defaultRefreshPeriod = 100
|
defaultMinPeriod = 100
|
||||||
defaultClipDuration = 0
|
defaultClipDuration = 0
|
||||||
defaultQuantization = 30
|
defaultQuantization = 30
|
||||||
defaultBitrate = 400000
|
defaultBitrate = 400000
|
||||||
|
@ -393,8 +393,8 @@ func (c *Config) Validate() error {
|
||||||
}
|
}
|
||||||
|
|
||||||
if c.MinPeriod == 0 {
|
if c.MinPeriod == 0 {
|
||||||
c.Logger.Log(logger.Info, pkg+"no intra refresh defined, defaulting", "intraRefresh", defaultRefreshPeriod)
|
c.Logger.Log(logger.Info, pkg+"no min period defined, defaulting", "MinPeriod", defaultMinPeriod)
|
||||||
c.MinPeriod = defaultRefreshPeriod
|
c.MinPeriod = defaultMinPeriod
|
||||||
} else if c.MinPeriod < 0 {
|
} else if c.MinPeriod < 0 {
|
||||||
return errors.New("refresh period is less than 0")
|
return errors.New("refresh period is less than 0")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue