From b2c7eced991f43ee14975b323fcb8cddeddc692e Mon Sep 17 00:00:00 2001 From: Saxon1 Date: Sat, 5 May 2018 13:13:52 +0930 Subject: [PATCH] Fixing some more syntax errors --- revid/Revid.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/revid/Revid.go b/revid/Revid.go index 431eae4c..4cb2d56b 100644 --- a/revid/Revid.go +++ b/revid/Revid.go @@ -531,29 +531,29 @@ func (r *revid) setupInputForRaspivid() error { var quantizationFlag string var quantizationValue string var verticalFlipFlag string - var horizontalFlipFlag string + var horizontalFlipFlag string switch r.config.QuantizationMode { case QuantizationOn: - quantizationFlag := "-qp" - quantizationValue := r.config.Quantization + quantizationFlag = "-qp" + quantizationValue = r.config.Quantization case QuantizationOff: - quantizationFlag := "" - quantizationValue := "" + quantizationFlag = "" + quantizationValue = "" } switch r.config.HorizontalFlip { case Yes: - horizontalFlipFlag := "-hf" + horizontalFlipFlag = "-hf" case No: - horizontalFlipFlag := "" + horizontalFlipFlag = "" } switch r.config.VerticalFlip { case Yes: - verticalFlipFlag := "-vf" + verticalFlipFlag = "-vf" case No: - verticalFlipFlag := "" + verticalFlipFlag = "" } r.cmd = exec.Command("raspivid",