mirror of https://bitbucket.org/ausocean/av.git
revid/revid.go: fixed ring buffer related string literal confusion
This commit is contained in:
parent
0f9eba4bb1
commit
7086960e66
|
@ -721,10 +721,10 @@ func (r *Revid) Update(vars map[string]string) error {
|
|||
break
|
||||
}
|
||||
r.cfg.RTMPRBWriteTimeout = v
|
||||
case "MTSRBElementSize":
|
||||
case "MTSRBMaxElements":
|
||||
v, err := strconv.Atoi(value)
|
||||
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
|
||||
}
|
||||
r.cfg.MTSRBMaxElements = v
|
||||
|
|
Loading…
Reference in New Issue