Just updating

This commit is contained in:
Unknown 2018-01-31 13:44:59 +10:30
parent d87a727f0f
commit 9ae75e67b7
2 changed files with 1 additions and 1 deletions

View File

@ -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:]
}

View File

@ -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)