mirror of https://bitbucket.org/ausocean/av.git
Defend against nil rv in send().
This commit is contained in:
parent
9dd53b58a0
commit
0daaf89154
|
@ -317,7 +317,7 @@ func send(ns *netsender.Sender) error {
|
|||
// populate input values, if any
|
||||
inputs := netsender.MakePins(ns.Param("ip"), "X")
|
||||
for i, pin := range inputs {
|
||||
if pin.Name == "X23" {
|
||||
if rv != nil && pin.Name == "X23" {
|
||||
inputs[i].Value = rv.Bitrate()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue