mirror of https://bitbucket.org/ausocean/av.git
protocol/rtcp: renamed highestSequence() to sequence.
This commit is contained in:
parent
6b994d0dba
commit
b43f6f8072
|
@ -61,7 +61,7 @@ type Client struct {
|
|||
name string // Name of the client for source description purposes.
|
||||
sourceSSRC uint32 // Source identifier of this client.
|
||||
mu sync.Mutex // Will be used to change parameters during operation safely.
|
||||
sequence uint32 // Last RTP sequence number.
|
||||
seq uint32 // Last RTP sequence number.
|
||||
senderTs [8]byte // The timestamp of the last sender report.
|
||||
interval time.Duration // Interval between sender report and receiver report.
|
||||
receiveTime time.Time // Time last sender report was received.
|
||||
|
@ -177,7 +177,7 @@ func (c *Client) send() {
|
|||
SSRC: c.sourceSSRC,
|
||||
FractionLost: 0,
|
||||
PacketsLost: math.MaxUint32,
|
||||
HighestSequence: c.highestSequence(),
|
||||
HighestSequence: c.sequence(),
|
||||
Jitter: c.jitter(),
|
||||
LSR: c.lastSenderTs(),
|
||||
DLSR: c.delay(),
|
||||
|
@ -242,14 +242,14 @@ func (c *Client) parse(buf []byte) {
|
|||
// through an RTP stream.
|
||||
func (c *Client) SetSequence(s uint32) {
|
||||
c.mu.Lock()
|
||||
c.sequence = s
|
||||
c.seq = s
|
||||
c.mu.Unlock()
|
||||
}
|
||||
|
||||
// highestSequence will return the highest sequence number received through RTP.
|
||||
func (c *Client) highestSequence() uint32 {
|
||||
// sequence will return the highest sequence number received through RTP.
|
||||
func (c *Client) sequence() uint32 {
|
||||
c.mu.Lock()
|
||||
s := c.sequence
|
||||
s := c.seq
|
||||
c.mu.Unlock()
|
||||
return s
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue