mirror of https://bitbucket.org/ausocean/av.git
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:
parent
03a88313d1
commit
325067ac1f
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue