revid: iterating through destinations and using destination.release() instead of directly talking to ringbuffer chunks

This commit is contained in:
saxon 2018-11-29 14:22:39 +10:30
parent 14f4bb0e63
commit 2c2be84499
1 changed files with 3 additions and 1 deletions

View File

@ -405,7 +405,9 @@ loop:
}
// Release the chunk back to the ring buffer for use
chunk.Close()
for _, dest := range r.destination {
dest.release()
}
r.config.Logger.Log(smartlogger.Debug, pkg+"done reading that clip from ring buffer")
// Log some information regarding bitrate and ring buffer size if it's time