diff --git a/revid/Revid.go b/revid/Revid.go index 20a97975..b6345d78 100644 --- a/revid/Revid.go +++ b/revid/Revid.go @@ -546,16 +546,16 @@ func (r *revid) setupInputForRaspivid() error { } if r.config.QuantizationMode == QuantizationOn{ - append(arguments,"-qp") - append(arguments,r.config.Quantization); + arguments = append(arguments,"-qp") + arguments = append(arguments,r.config.Quantization); } if r.config.HorizontalFlip == Yes { - append(arguments, "-hf") + arguments = append(arguments, "-hf") } if r.config.VerticalFlip == Yes { - append(arguments, "-vf") + arguments = append(arguments, "-vf") } r.cmd = &Cmd{ @@ -564,9 +564,9 @@ func (r *revid) setupInputForRaspivid() error { } if filepath.Base(name) == name { if lp, err := LookPath(name); err != nil { - cmd.lookPathErr = err + r.cmd.lookPathErr = err } else { - cmd.Path = lp + r.cmd.Path = lp } }