From 2c2be8449939de63485b15d8cd5b6dce9d176fa0 Mon Sep 17 00:00:00 2001 From: saxon Date: Thu, 29 Nov 2018 14:22:39 +1030 Subject: [PATCH] revid: iterating through destinations and using destination.release() instead of directly talking to ringbuffer chunks --- revid/revid.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/revid/revid.go b/revid/revid.go index c3af4cd9..058ccd67 100644 --- a/revid/revid.go +++ b/revid/revid.go @@ -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