From ef1ede1eb5a2802e733a9123220e99c2eefe4064 Mon Sep 17 00:00:00 2001 From: Saxon1 Date: Thu, 3 May 2018 17:58:56 +0930 Subject: [PATCH] fixed some syntax errors --- revid/Config.go | 2 +- revid/Revid.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/revid/Config.go b/revid/Config.go index a1a2c6d4..a63184f2 100644 --- a/revid/Config.go +++ b/revid/Config.go @@ -30,7 +30,7 @@ package revid import ( "errors" "strconv" - "fmt" + _"fmt" "bitbucket.org/ausocean/utils/smartLogger" //"../../utils/smartLogger" diff --git a/revid/Revid.go b/revid/Revid.go index 9876a622..6c9a8b4f 100644 --- a/revid/Revid.go +++ b/revid/Revid.go @@ -537,7 +537,7 @@ func (r *revid) setupInputForRaspivid() error { case H264: switch r.config.QuantizationMode { case QuantizationOn: - if config.Flip == config.No { + if r.config.Flip == config.No { r.cmd = exec.Command("raspivid", "-cd", "H264", "-o", "-", @@ -570,7 +570,7 @@ func (r *revid) setupInputForRaspivid() error { } case QuantizationOff: - if config.Flip == config.No { + if r.config.Flip == config.No { r.cmd = exec.Command("raspivid", "-cd", "H264", "-o", "-",