mirror of https://bitbucket.org/ausocean/av.git
revid-cli: updated input and output const names
This commit is contained in:
parent
a6aef125fd
commit
7dc15d8095
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue