revid: add old webcam starting code and renamed func to LinuxWebcam considering this will only work on linux

This commit is contained in:
saxon 2019-01-03 10:35:22 +10:30
parent 5b73c2c2ba
commit fd3c4010e4
1 changed files with 1 additions and 1 deletions

View File

@ -498,7 +498,7 @@ func (r *Revid) startRaspivid() error {
return err return err
} }
func (r *Revid) startWebcam() error { func (r *Revid) LinuxWebcam() error {
r.config.Logger.Log(smartlogger.Info, pkg+"starting webcam") r.config.Logger.Log(smartlogger.Info, pkg+"starting webcam")
r.cmd = exec.Command("ffmpeg", []string{ r.cmd = exec.Command("ffmpeg", []string{
"-i", "/dev/video0", "-i", "/dev/video0",