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 {
|
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:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue