revid: rtpSndr=>rtpSender

This commit is contained in:
saxon 2019-01-03 11:57:43 +10:30
parent aefdc46273
commit 496fa994bd
1 changed files with 3 additions and 3 deletions

View File

@ -120,7 +120,7 @@ type Revid struct {
// Rtp sending doesn't use ring buffer so we isolate this from Destination // Rtp sending doesn't use ring buffer so we isolate this from Destination
// above // above
rtpSndr *rtpSender rtpSender *rtpSender
// bitrate hold the last send bitrate calculation result. // bitrate hold the last send bitrate calculation result.
bitrate int bitrate int
@ -152,8 +152,8 @@ func (p *packer) Write(frame []byte) (int, error) {
} }
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 we have an rtp sender bypass ringbuffer and give straight to sender
if p.owner.rtpSndr != nil { if p.owner.rtpSender != nil {
err = p.owner.rtpSndr.send(frame) err = p.owner.rtpSender.send(frame)
if err != nil { if err != nil {
p.owner.config.Logger.Log(smartlogger.Error, pkg+"rtp send failed with error", "error", err.Error()) p.owner.config.Logger.Log(smartlogger.Error, pkg+"rtp send failed with error", "error", err.Error())
} }