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 (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
_ "fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"os"
|
"os"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
|
@ -315,6 +315,7 @@ func (r *Revid) packClips() {
|
||||||
packetCount++
|
packetCount++
|
||||||
clipSize += lenOfFrame
|
clipSize += lenOfFrame
|
||||||
if packetCount >= r.config.FramesPerClip {
|
if packetCount >= r.config.FramesPerClip {
|
||||||
|
fmt.Println("flushing buffer")
|
||||||
r.ringBuffer.Flush()
|
r.ringBuffer.Flush()
|
||||||
clipSize = 0
|
clipSize = 0
|
||||||
packetCount = 0
|
packetCount = 0
|
||||||
|
|
Loading…
Reference in New Issue