diff --git a/revid/revid.go b/revid/revid.go index bdf9ccf3..6948c0f9 100644 --- a/revid/revid.go +++ b/revid/revid.go @@ -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 {