Merged in revid-bitrate-fix (pull request #157)

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

Approved-by: Saxon Milton <saxon.milton@gmail.com>
Approved-by: Alan Noble <anoble@gmail.com>
This commit is contained in:
Alan Noble 2019-03-08 23:01:59 +00:00
commit 71e993255b
1 changed files with 3 additions and 3 deletions

View File

@ -267,10 +267,10 @@ func run(cfg revid.Config) {
readPin := func(pin *netsender.Pin) error {
switch {
case pin.Name == "X23":
if rv == nil {
pin.Value = -1
pin.Value = -1
if rv != nil {
pin.Value = rv.Bitrate()
}
pin.Value = rv.Bitrate()
case pin.Name[0] == 'X':
return sds.ReadSystem(pin)
default: