From bd56e936a40a4a7f5d1983a31cb237bef4713987 Mon Sep 17 00:00:00 2001 From: Saxon Date: Thu, 16 May 2019 13:05:09 +0930 Subject: [PATCH] cmd/revid-cli: checking Input flag string and assigning cfg.Input to revid.RTSPCamera if 'RTSPCamera' is entered. --- cmd/revid-cli/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/revid-cli/main.go b/cmd/revid-cli/main.go index e41fc657..a1961873 100644 --- a/cmd/revid-cli/main.go +++ b/cmd/revid-cli/main.go @@ -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")