mirror of https://bitbucket.org/ausocean/av.git
Fixed error
This commit is contained in:
parent
8179b371e6
commit
b2269ef8d8
|
@ -350,7 +350,7 @@ func (r *revid) packClips() {
|
|||
for r.isRunning {
|
||||
select {
|
||||
// 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()):
|
||||
lenOfFrame := len(frame)
|
||||
if lenOfFrame > ringBufferElementSize {
|
||||
|
@ -374,12 +374,13 @@ func (r *revid) packClips() {
|
|||
}
|
||||
clipSize = 0
|
||||
packetCount = 0
|
||||
break
|
||||
goto finishedWithClip
|
||||
}
|
||||
default:
|
||||
time.Sleep(time.Duration(5)*time.Millisecond)
|
||||
}
|
||||
}
|
||||
finishedWithClip:
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue