revid: adding another debug print to make sure we're flushing ring buffer

This commit is contained in:
saxon 2018-09-24 20:24:15 +09:30
parent 195f52ae16
commit 9b7b88be98
1 changed files with 2 additions and 1 deletions

View File

@ -31,7 +31,7 @@ package revid
import (
"errors"
_ "fmt"
"fmt"
"io"
"os"
"os/exec"
@ -315,6 +315,7 @@ func (r *Revid) packClips() {
packetCount++
clipSize += lenOfFrame
if packetCount >= r.config.FramesPerClip {
fmt.Println("flushing buffer")
r.ringBuffer.Flush()
clipSize = 0
packetCount = 0