diff --git a/revid/revid.go b/revid/revid.go index 3ab67e7f..ffd1df37 100644 --- a/revid/revid.go +++ b/revid/revid.go @@ -120,7 +120,7 @@ type Revid struct { // Rtp sending doesn't use ring buffer so we isolate this from Destination // above - rtpSndr *rtpSender + rtpSender *rtpSender // bitrate hold the last send bitrate calculation result. bitrate int @@ -152,8 +152,8 @@ func (p *packer) Write(frame []byte) (int, error) { } n, err := p.owner.buffer.Write(frame) // If we have an rtp sender bypass ringbuffer and give straight to sender - if p.owner.rtpSndr != nil { - err = p.owner.rtpSndr.send(frame) + if p.owner.rtpSender != nil { + err = p.owner.rtpSender.send(frame) if err != nil { p.owner.config.Logger.Log(smartlogger.Error, pkg+"rtp send failed with error", "error", err.Error()) }