revid/revid.go: reverted change regarding putting things in ringbuffer when we won't use it

This commit is contained in:
saxon 2019-02-06 15:52:59 +10:30
parent cdd6703930
commit ef4aa8efd1
1 changed files with 1 additions and 5 deletions

View File

@ -145,11 +145,7 @@ func (p *packer) Write(frame []byte) (int, error) {
p.owner.config.Logger.Log(logger.Warning, pkg+"frame was too big", "frame size", len(frame)) p.owner.config.Logger.Log(logger.Warning, pkg+"frame was too big", "frame size", len(frame))
return len(frame), nil return len(frame), nil
} }
var n int n, err := p.owner.buffer.Write(frame)
var err error
if len(p.owner.destination) != 0 {
n, err = p.owner.buffer.Write(frame)
}
// If we have an rtp sender bypass ringbuffer and give straight to sender // If we have an rtp sender bypass ringbuffer and give straight to sender
if p.owner.rtpSender != nil { if p.owner.rtpSender != nil {