This could be it

This commit is contained in:
Saxon1 2018-05-06 00:36:07 +09:30
parent 39e6a785ef
commit 6500eef888
1 changed files with 9 additions and 7 deletions

View File

@ -297,14 +297,16 @@ func (r *revid) getFramePacketization() []byte {
// flushDataPacketization removes data from the revid inst's coutput chan
func (r *revid) flushData() {
for {
select {
case <-r.outputChan:
default:
goto done
switch r.config.Packetization {
case Flv:
for len(r.generator.GetOutputChan()) > 0 {
<-(r.generator.GetOutputChan())
}
case None:
for len(r.outputChan) > 0 {
<-r.outputChan
}
}
done:
}
// packClips takes data segments; whether that be tsPackets or mjpeg frames and