mirror of https://bitbucket.org/ausocean/av.git
netsender.MakePins() now takes a 2nd arg.
This commit is contained in:
parent
82f58ec996
commit
53f923afb1
|
@ -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())
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue