mirror of https://bitbucket.org/ausocean/av.git
Don't call rv.Bitrate when rv is nil.
This commit is contained in:
parent
05c2c77f31
commit
1c9dde3798
|
@ -269,8 +269,9 @@ func run(cfg revid.Config) {
|
||||||
case pin.Name == "X23":
|
case pin.Name == "X23":
|
||||||
if rv == nil {
|
if rv == nil {
|
||||||
pin.Value = -1
|
pin.Value = -1
|
||||||
}
|
} else {
|
||||||
pin.Value = rv.Bitrate()
|
pin.Value = rv.Bitrate()
|
||||||
|
}
|
||||||
case pin.Name[0] == 'X':
|
case pin.Name[0] == 'X':
|
||||||
return sds.ReadSystem(pin)
|
return sds.ReadSystem(pin)
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue