mirror of https://bitbucket.org/ausocean/av.git
This could be it
This commit is contained in:
parent
39e6a785ef
commit
6500eef888
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue