diff --git a/revid/senders.go b/revid/senders.go index c2ee641c..82f5cf18 100644 --- a/revid/senders.go +++ b/revid/senders.go @@ -101,18 +101,18 @@ func httpSend(d []byte, client *netsender.Sender, log func(lvl int8, msg string, log(logger.Debug, "making pins, and sending recv request", "ip", ip) pins := netsender.MakePins(ip, "V,S") for i, pin := range pins { - if pin.Name == "V0" || pin.Name == "S0" { - switch pin.Name { - case "V0": - pins[i].MimeType = "video/mp2t" - case "S0": - pins[i].MimeType = "audio/x-wav" - } - pins[i].Value = len(d) - pins[i].Data = d - send = true - break + switch pin.Name { + case "V0": + pins[i].MimeType = "video/mp2t" + case "S0": + pins[i].MimeType = "audio/x-wav" + default: + continue } + pins[i].Value = len(d) + pins[i].Data = d + send = true + break } if !send {