mirror of https://bitbucket.org/ausocean/av.git
revid: fix http destination assignment
This commit is contained in:
parent
071e6fd0f7
commit
58102e5587
|
@ -211,8 +211,8 @@ func (r *Revid) reset(config Config) error {
|
|||
}
|
||||
|
||||
r.destination = r.destination[:0]
|
||||
for outNo, outType := range r.config.Outputs {
|
||||
switch outType {
|
||||
for _, typ := range r.config.Outputs {
|
||||
switch typ {
|
||||
case File:
|
||||
s, err := newFileSender(config.OutputFileName)
|
||||
if err != nil {
|
||||
|
@ -232,7 +232,7 @@ func (r *Revid) reset(config Config) error {
|
|||
}
|
||||
r.destination = append(r.destination, s)
|
||||
case Http:
|
||||
r.destination[outNo] = newHttpSender(r.ns, r.config.Logger.Log)
|
||||
r.destination = append(r.destination, newHttpSender(r.ns, r.config.Logger.Log))
|
||||
case Udp:
|
||||
s, err := newUdpSender(r.config.RtpAddress, r.config.Logger.Log)
|
||||
if err != nil {
|
||||
|
|
Loading…
Reference in New Issue