still fixing stuff

This commit is contained in:
Saxon Milton 2018-04-19 08:07:57 +00:00
parent 85c8ee8c97
commit f41d02e705
1 changed files with 2 additions and 1 deletions

View File

@ -301,7 +301,8 @@ func (r *revid) packClips() {
for {
// Get some memory from the ring buffer for out clip
var clip []byte
if clip, err := r.ringBuffer.Get(); err != nil {
var err error
if clip, err = r.ringBuffer.Get(); err != nil {
r.Log(Error, err.Error())
r.Log(Warning, "Clearing output chan!")
r.flushData()