mirror of https://bitbucket.org/ausocean/av.git
Merged in file-valid-input-var (pull request #298)
File is a valid value to the input variable Approved-by: Saxon Milton <saxon.milton@gmail.com>
This commit is contained in:
commit
d9d78ac275
|
@ -472,7 +472,7 @@ func (r *Revid) Update(vars map[string]string) error {
|
||||||
for key, value := range vars {
|
for key, value := range vars {
|
||||||
switch key {
|
switch key {
|
||||||
case "Input":
|
case "Input":
|
||||||
v, ok := map[string]uint8{"raspivid": config.InputRaspivid, "rtsp": config.InputRTSP, "v4l": config.InputV4L}[strings.ToLower(value)]
|
v, ok := map[string]uint8{"raspivid": config.InputRaspivid, "rtsp": config.InputRTSP, "v4l": config.InputV4L, "file": config.InputFile}[strings.ToLower(value)]
|
||||||
if !ok {
|
if !ok {
|
||||||
r.cfg.Logger.Log(logger.Warning, pkg+"invalid input var", "value", value)
|
r.cfg.Logger.Log(logger.Warning, pkg+"invalid input var", "value", value)
|
||||||
break
|
break
|
||||||
|
|
Loading…
Reference in New Issue