diff --git a/revid/revid.go b/revid/revid.go index 8968a1e5..454a3b8a 100644 --- a/revid/revid.go +++ b/revid/revid.go @@ -148,7 +148,7 @@ func (p *packer) Write(frame []byte) (int, error) { 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