mirror of https://bitbucket.org/ausocean/av.git
revid: don't append Config.RTMPURL
Config.RTMPURL was being appended when updated, which means that it would just continue to grow, and by the time we actually try to use the RTMP URLs that are stored, we end up using old ones. Instead this should just be completely replaced.
This commit is contained in:
parent
47b2b1576f
commit
79b0a49994
|
@ -586,10 +586,7 @@ var Variables = []struct {
|
||||||
Type: typeString,
|
Type: typeString,
|
||||||
Update: func(c *Config, v string) {
|
Update: func(c *Config, v string) {
|
||||||
v = strings.ReplaceAll(v, " ", "")
|
v = strings.ReplaceAll(v, " ", "")
|
||||||
split := strings.Split(v, ",")
|
c.RTMPURL = strings.Split(v, ",")
|
||||||
for _, s := range split {
|
|
||||||
c.RTMPURL = append(c.RTMPURL, s)
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue