mirror of https://bitbucket.org/ausocean/av.git
revid: rtpSndr=>rtpSender
This commit is contained in:
parent
aefdc46273
commit
496fa994bd
|
@ -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())
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue