mirror of https://bitbucket.org/ausocean/av.git
revid: updated some comments
This commit is contained in:
parent
d0d9e20c87
commit
aefdc46273
|
@ -118,7 +118,8 @@ type Revid struct {
|
||||||
// destination is the target endpoint.
|
// destination is the target endpoint.
|
||||||
destination []loadSender
|
destination []loadSender
|
||||||
|
|
||||||
// rtpSender
|
// Rtp sending doesn't use ring buffer so we isolate this from Destination
|
||||||
|
// above
|
||||||
rtpSndr *rtpSender
|
rtpSndr *rtpSender
|
||||||
|
|
||||||
// bitrate hold the last send bitrate calculation result.
|
// bitrate hold the last send bitrate calculation result.
|
||||||
|
@ -150,7 +151,7 @@ func (p *packer) Write(frame []byte) (int, error) {
|
||||||
return len(frame), nil
|
return len(frame), nil
|
||||||
}
|
}
|
||||||
n, err := p.owner.buffer.Write(frame)
|
n, err := p.owner.buffer.Write(frame)
|
||||||
// If we have an rtp sender bypass 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.rtpSndr != nil {
|
||||||
err = p.owner.rtpSndr.send(frame)
|
err = p.owner.rtpSndr.send(frame)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue