outage fix

This commit is contained in:
Saxon Milton 2018-04-25 13:56:46 +09:30
parent b430224020
commit abfa93aab3
1 changed files with 1 additions and 3 deletions

View File

@ -294,10 +294,8 @@ func (r *revid) getFramePacketization() []byte {
// flushDataPacketization removes data from the revid inst's coutput chan // flushDataPacketization removes data from the revid inst's coutput chan
func (r *revid) flushData() { func (r *revid) flushData() {
for len(r.outputChan) > 0 {
<-(r.outputChan) <-(r.outputChan)
} }
}
// packClips takes data segments; whether that be tsPackets or mjpeg frames and // packClips takes data segments; whether that be tsPackets or mjpeg frames and
// packs them into clips consisting of the amount frames specified in the config // packs them into clips consisting of the amount frames specified in the config