rename buf into payload

This commit is contained in:
aler9
2021-07-03 11:52:51 +02:00
parent 649c63cf5b
commit 88608152cc
7 changed files with 19 additions and 19 deletions

View File

@@ -33,13 +33,13 @@ func New(clockRate int) *RTCPSender {
}
// ProcessFrame extracts the needed data from RTP or RTCP frames.
func (rs *RTCPSender) ProcessFrame(ts time.Time, streamType base.StreamType, buf []byte) {
func (rs *RTCPSender) ProcessFrame(ts time.Time, streamType base.StreamType, payload []byte) {
rs.mutex.Lock()
defer rs.mutex.Unlock()
if streamType == base.StreamTypeRTP {
pkt := rtp.Packet{}
err := pkt.Unmarshal(buf)
err := pkt.Unmarshal(payload)
if err == nil {
if !rs.firstRTPReceived {
rs.firstRTPReceived = true