mirror of https://bitbucket.org/ausocean/av.git
Just updating
This commit is contained in:
parent
d87a727f0f
commit
9ae75e67b7
|
@ -162,7 +162,6 @@ func (p *mjpegParser)parse() {
|
|||
aByte := <-p.inputChan
|
||||
outputBuffer = append(outputBuffer, aByte)
|
||||
if aByte == 0xD8 {
|
||||
fmt.Printf("image: %v\n", outputBuffer[:len(outputBuffer)-2])
|
||||
p.parserOutputChanRef<-outputBuffer[:len(outputBuffer)-2]
|
||||
outputBuffer = outputBuffer[len(outputBuffer)-2:]
|
||||
}
|
||||
|
|
|
@ -478,6 +478,7 @@ func (r *revidInst) outputClips() {
|
|||
r.Log(Debug, fmt.Sprintf("Ring buffer size: %v\n", r.ringBuffer.GetNoOfElements()))
|
||||
switch r.config.Output {
|
||||
case File:
|
||||
fmt.Println("")
|
||||
r.outputFile.Write(clip)
|
||||
case HttpOut:
|
||||
bytes += len(clip)
|
||||
|
|
Loading…
Reference in New Issue