revid-cli: updated input and output const names

This commit is contained in:
Saxon 2019-11-05 20:22:05 +10:30
parent a6aef125fd
commit 7dc15d8095
1 changed files with 9 additions and 9 deletions

View File

@ -179,15 +179,15 @@ func handleFlags() revid.Config {
switch *inputPtr {
case "Raspivid":
cfg.Input = revid.Raspivid
cfg.Input = revid.InputRaspivid
case "v4l":
cfg.Input = revid.V4L
cfg.Input = revid.InputV4L
case "File":
cfg.Input = revid.File
cfg.Input = revid.InputFile
case "Audio":
cfg.Input = revid.Audio
cfg.Input = revid.InputAudio
case "RTSP":
cfg.Input = revid.RTSP
cfg.Input = revid.InputRTSP
case "":
default:
log.Log(logger.Error, pkg+"bad input argument")
@ -214,13 +214,13 @@ func handleFlags() revid.Config {
for _, o := range outputs {
switch o {
case "File":
cfg.Outputs = append(cfg.Outputs, revid.File)
cfg.Outputs = append(cfg.Outputs, revid.OutputFile)
case "Http":
cfg.Outputs = append(cfg.Outputs, revid.HTTP)
cfg.Outputs = append(cfg.Outputs, revid.OutputHTTP)
case "Rtmp":
cfg.Outputs = append(cfg.Outputs, revid.RTMP)
cfg.Outputs = append(cfg.Outputs, revid.OutputRTMP)
case "Rtp":
cfg.Outputs = append(cfg.Outputs, revid.RTP)
cfg.Outputs = append(cfg.Outputs, revid.OutputRTP)
case "":
default:
log.Log(logger.Error, pkg+"bad output argument", "arg", o)