revid/inputs.go: using alias avconfig for revid/config package

This commit is contained in:
Saxon 2019-11-08 17:35:44 +10:30
parent 772c381293
commit ff54b40bd2
1 changed files with 7 additions and 7 deletions

View File

@ -44,7 +44,7 @@ import (
"bitbucket.org/ausocean/av/protocol/rtcp"
"bitbucket.org/ausocean/av/protocol/rtp"
"bitbucket.org/ausocean/av/protocol/rtsp"
"bitbucket.org/ausocean/av/revid/config"
avconfig "bitbucket.org/ausocean/av/revid/config"
"bitbucket.org/ausocean/utils/logger"
)
@ -208,12 +208,12 @@ func (r *Revid) startRTSPCamera() (func() error, error) {
gvconfig.FrameRate(int(r.cfg.FrameRate)),
gvconfig.VariableBitrate(r.cfg.VBR),
gvconfig.VBRQuality(
map[config.Quality]gvconfig.Quality{
config.QualityStandard: gvconfig.QualityStandard,
config.QualityFair: gvconfig.QualityFair,
config.QualityGood: gvconfig.QualityGood,
config.QualityGreat: gvconfig.QualityGreat,
config.QualityExcellent: gvconfig.QualityExcellent,
map[avconfig.Quality]gvconfig.Quality{
avconfig.QualityStandard: gvconfig.QualityStandard,
avconfig.QualityFair: gvconfig.QualityFair,
avconfig.QualityGood: gvconfig.QualityGood,
avconfig.QualityGreat: gvconfig.QualityGreat,
avconfig.QualityExcellent: gvconfig.QualityExcellent,
}[r.cfg.VBRQuality],
),
gvconfig.VBRBitrate(r.cfg.VBRBitrate),