fixed some syntax errors

This commit is contained in:
Saxon1 2018-05-03 17:58:56 +09:30
parent 12cefea60a
commit ef1ede1eb5
2 changed files with 3 additions and 3 deletions

View File

@ -30,7 +30,7 @@ package revid
import ( import (
"errors" "errors"
"strconv" "strconv"
"fmt" _"fmt"
"bitbucket.org/ausocean/utils/smartLogger" "bitbucket.org/ausocean/utils/smartLogger"
//"../../utils/smartLogger" //"../../utils/smartLogger"

View File

@ -537,7 +537,7 @@ func (r *revid) setupInputForRaspivid() error {
case H264: case H264:
switch r.config.QuantizationMode { switch r.config.QuantizationMode {
case QuantizationOn: case QuantizationOn:
if config.Flip == config.No { if r.config.Flip == config.No {
r.cmd = exec.Command("raspivid", r.cmd = exec.Command("raspivid",
"-cd", "H264", "-cd", "H264",
"-o", "-", "-o", "-",
@ -570,7 +570,7 @@ func (r *revid) setupInputForRaspivid() error {
} }
case QuantizationOff: case QuantizationOff:
if config.Flip == config.No { if r.config.Flip == config.No {
r.cmd = exec.Command("raspivid", r.cmd = exec.Command("raspivid",
"-cd", "H264", "-cd", "H264",
"-o", "-", "-o", "-",