mirror of https://bitbucket.org/ausocean/av.git
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:
commit
71e993255b
|
@ -267,10 +267,10 @@ func run(cfg revid.Config) {
|
||||||
readPin := func(pin *netsender.Pin) error {
|
readPin := func(pin *netsender.Pin) error {
|
||||||
switch {
|
switch {
|
||||||
case pin.Name == "X23":
|
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':
|
case pin.Name[0] == 'X':
|
||||||
return sds.ReadSystem(pin)
|
return sds.ReadSystem(pin)
|
||||||
default:
|
default:
|
||||||
|
|
Loading…
Reference in New Issue