From 496fa994bdacaaa2441d78e43c1182eb91e9d891 Mon Sep 17 00:00:00 2001 From: saxon Date: Thu, 3 Jan 2019 11:57:43 +1030 Subject: [PATCH] revid: rtpSndr=>rtpSender --- revid/revid.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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()) }