Don't call rv.Bitrate when rv is nil.

This commit is contained in:
Alan Noble 2019-03-03 23:04:49 +00:00
parent 05c2c77f31
commit 1c9dde3798
1 changed files with 2 additions and 1 deletions

View File

@ -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: