mirror of https://bitbucket.org/ausocean/av.git
cmd/revid-cli: checking Input flag string and assigning cfg.Input to revid.RTSPCamera if 'RTSPCamera' is entered.
This commit is contained in:
parent
5a2f15054d
commit
bd56e936a4
|
@ -183,6 +183,8 @@ func handleFlags() revid.Config {
|
|||
cfg.Input = revid.V4L
|
||||
case "File":
|
||||
cfg.Input = revid.File
|
||||
case "RTSPCamera":
|
||||
cfg.Input = revid.RTSPCamera
|
||||
case "":
|
||||
default:
|
||||
log.Log(logger.Error, pkg+"bad input argument")
|
||||
|
|
Loading…
Reference in New Issue