revid: checking for webcam input in config.go validate()

This commit is contained in:
saxon 2019-01-13 19:33:07 +10:30
parent 07307ed492
commit fc06ec235e
1 changed files with 1 additions and 0 deletions

View File

@ -134,6 +134,7 @@ func (c *Config) Validate(r *Revid) error {
switch c.Input { switch c.Input {
case Raspivid: case Raspivid:
case File: case File:
case Webcam:
case NothingDefined: case NothingDefined:
c.Logger.Log(logger.Warning, pkg+"no input type defined, defaulting", "input", c.Logger.Log(logger.Warning, pkg+"no input type defined, defaulting", "input",
defaultInput) defaultInput)