From 325067ac1fbbf3421c0afc5fe2a0989a07e8c066 Mon Sep 17 00:00:00 2001 From: saxon Date: Thu, 3 Jan 2019 11:49:02 +1030 Subject: [PATCH] revid: linuxWebcam to startWebcam to keep less specific to particular platform as we may eventually stream from webcam on windows --- revid/revid.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/revid/revid.go b/revid/revid.go index 7e33297d..47fa178b 100644 --- a/revid/revid.go +++ b/revid/revid.go @@ -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",