cmd/revid-cli: checking Input flag string and assigning cfg.Input to revid.RTSPCamera if 'RTSPCamera' is entered.

This commit is contained in:
Saxon 2019-05-16 13:05:09 +09:30
parent 5a2f15054d
commit bd56e936a4
1 changed files with 2 additions and 0 deletions

View File

@ -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")