mirror of https://bitbucket.org/ausocean/av.git
revid/revid.go: reverted change regarding putting things in ringbuffer when we won't use it
This commit is contained in:
parent
cdd6703930
commit
ef4aa8efd1
|
@ -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))
|
||||
return len(frame), nil
|
||||
}
|
||||
var n int
|
||||
var err error
|
||||
if len(p.owner.destination) != 0 {
|
||||
n, err = p.owner.buffer.Write(frame)
|
||||
}
|
||||
n, err := p.owner.buffer.Write(frame)
|
||||
|
||||
// If we have an rtp sender bypass ringbuffer and give straight to sender
|
||||
if p.owner.rtpSender != nil {
|
||||
|
|
Loading…
Reference in New Issue