revid/revid.go: fixed ring buffer related string literal confusion

This commit is contained in:
Saxon 2020-01-09 13:25:31 +10:30
parent 0f9eba4bb1
commit 7086960e66
1 changed files with 2 additions and 2 deletions

View File

@ -721,10 +721,10 @@ func (r *Revid) Update(vars map[string]string) error {
break break
} }
r.cfg.RTMPRBWriteTimeout = v r.cfg.RTMPRBWriteTimeout = v
case "MTSRBElementSize": case "MTSRBMaxElements":
v, err := strconv.Atoi(value) v, err := strconv.Atoi(value)
if err != nil || v < 0 { if err != nil || v < 0 {
r.cfg.Logger.Log(logger.Warning, pkg+"invalid MTSRBElementSize var", "value", value) r.cfg.Logger.Log(logger.Warning, pkg+"invalid MTSRBMaxElements var", "value", value)
break break
} }
r.cfg.MTSRBMaxElements = v r.cfg.MTSRBMaxElements = v