netsender.MakePins() now takes a 2nd arg.

This commit is contained in:
Alan Noble 2018-06-15 19:34:50 +09:30
parent 82f58ec996
commit 53f923afb1
2 changed files with 2 additions and 2 deletions

View File

@ -303,7 +303,7 @@ func main() {
// (as distinct from httpSender which just sends video data).
func sendTo(ns *netsender.Sender) error {
// populate input values, if any
inputs := netsender.MakePins(ns.GetConfigParam("ip"))
inputs := netsender.MakePins(ns.GetConfigParam("ip"), "X")
for i, pin := range inputs {
if pin.Name == "X23" {
inputs[i].Value = int(revidInst.GetBitrate())

View File

@ -133,7 +133,7 @@ func (s *httpSender) load(c *ring.Chunk) error {
}
func (s *httpSender) send() error {
pins := netsender.MakePins("V0")
pins := netsender.MakePins("V0","")
pins[0].Value = len(s.buf)
var payload netsender.Payload
payload.Name = "V0"