revid: linuxWebcam to startWebcam to keep less specific to particular platform as we may eventually stream from webcam on windows

This commit is contained in:
saxon 2019-01-03 11:49:02 +10:30
parent 03a88313d1
commit 325067ac1f
1 changed files with 2 additions and 2 deletions

View File

@ -257,7 +257,7 @@ func (r *Revid) reset(config Config) error {
switch r.config.Input {
case Webcam:
r.setupInput = r.linuxWebcam
r.setupInput = r.startWebcam
case Raspivid:
r.setupInput = r.startRaspivid
case File:
@ -489,7 +489,7 @@ func (r *Revid) startRaspivid() error {
return err
}
func (r *Revid) linuxWebcam() error {
func (r *Revid) startWebcam() error {
r.config.Logger.Log(logger.Info, pkg+"starting webcam")
r.cmd = exec.Command("ffmpeg", []string{
"-i", "/dev/video0",