diff --git a/revid/revid.go b/revid/revid.go index af604d31..df534f15 100644 --- a/revid/revid.go +++ b/revid/revid.go @@ -74,11 +74,6 @@ const ( pkg = "revid:" ) -const ( - out1 = 0 - out2 = 1 -) - // Log Types const ( Error = "Error" @@ -204,9 +199,9 @@ func (r *Revid) reset(config Config) error { } r.config = config - for _, destination := range r.destination { - if destination != nil { - err = destination.close() + for _, dest := range r.destination { + if dest != nil { + err = dest.close() if err != nil { return err } @@ -369,8 +364,8 @@ loop: count += chunk.Len() r.config.Logger.Log(smartlogger.Debug, pkg+"about to send") - for i, destination := range r.destination { - err = destination.load(chunk) + for i, dest := range r.destination { + err = dest.load(chunk) if err != nil { r.config.Logger.Log(smartlogger.Error, pkg+"failed to load clip to output"+strconv.Itoa(i)) }