mirror of https://bitbucket.org/ausocean/av.git
revid: adding another debug print to make sure we're flushing ring buffer
This commit is contained in:
parent
195f52ae16
commit
9b7b88be98
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue