(rtt uint32)
| 671 | } |
| 672 | |
| 673 | func (b *BufferBase) SetRTT(rtt uint32) { |
| 674 | b.Lock() |
| 675 | defer b.Unlock() |
| 676 | |
| 677 | if rtt == 0 { |
| 678 | return |
| 679 | } |
| 680 | |
| 681 | if b.nacker != nil { |
| 682 | b.nacker.SetRTT(rtt) |
| 683 | } |
| 684 | |
| 685 | if b.rtpStats != nil { |
| 686 | b.rtpStats.UpdateRtt(rtt) |
| 687 | } |
| 688 | } |
| 689 | |
| 690 | func (b *BufferBase) WaitRead() { |
| 691 | b.readCond.Wait() |