mirror of https://bitbucket.org/ausocean/av.git
revid: improved some naming and revmoed uneeded const
This commit is contained in:
parent
98eb2c64e8
commit
227f25a3fb
|
@ -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))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue