Fixed error

This commit is contained in:
Saxon Milton 2018-05-06 23:36:49 +09:30
parent 8179b371e6
commit b2269ef8d8
1 changed files with 3 additions and 2 deletions

View File

@ -350,7 +350,7 @@ func (r *revid) packClips() {
for r.isRunning { for r.isRunning {
select { select {
// TODO: This is temporary, need to work out how to make this work // TODO: This is temporary, need to work out how to make this work
// for cases when there is not packetisation. // for cases when there is not packetisation.
case frame := <-(r.generator.GetOutputChan()): case frame := <-(r.generator.GetOutputChan()):
lenOfFrame := len(frame) lenOfFrame := len(frame)
if lenOfFrame > ringBufferElementSize { if lenOfFrame > ringBufferElementSize {
@ -374,12 +374,13 @@ func (r *revid) packClips() {
} }
clipSize = 0 clipSize = 0
packetCount = 0 packetCount = 0
break goto finishedWithClip
} }
default: default:
time.Sleep(time.Duration(5)*time.Millisecond) time.Sleep(time.Duration(5)*time.Millisecond)
} }
} }
finishedWithClip:
} }
} }