diff --git a/revid/Revid.go b/revid/Revid.go index 2df1436b..e9ba7905 100644 --- a/revid/Revid.go +++ b/revid/Revid.go @@ -314,14 +314,7 @@ func (r *revid) packClips() { // Keep clearing output chan until out buffer has some space for clip, err = r.ringBuffer.Get(); err != nil; { r.flushData() - err2 := r.rtmpInst.EndSession() - if err2 != nil { - r.Log(Error, err2.Error()) - } - err3 := r.rtmpInst.StartSession() - if err3 != nil { - r.Log(Error, err3.Error()) - } + clip, err = r.ringBuffer.Get() } r.Log(Debug, "Finally got mem from ringbuffer!")