Use RtcpPacket classes for SenderReport/ReceiveReport in RTCPSender
BUG=2450 R=asapersson@webrtc.org Review URL: https://codereview.webrtc.org/1170723002. Cr-Commit-Position: refs/heads/master@{#9483}
This commit is contained in:
@ -234,7 +234,7 @@ class SenderReport : public RtcpPacket {
|
||||
void WithOctetCount(uint32_t octet_count) {
|
||||
sr_.SenderOctetCount = octet_count;
|
||||
}
|
||||
bool WithReportBlock(ReportBlock* block);
|
||||
bool WithReportBlock(const ReportBlock& block);
|
||||
|
||||
protected:
|
||||
bool Create(uint8_t* packet,
|
||||
@ -282,7 +282,7 @@ class ReceiverReport : public RtcpPacket {
|
||||
void From(uint32_t ssrc) {
|
||||
rr_.SenderSSRC = ssrc;
|
||||
}
|
||||
bool WithReportBlock(ReportBlock* block);
|
||||
bool WithReportBlock(const ReportBlock& block);
|
||||
|
||||
protected:
|
||||
bool Create(uint8_t* packet,
|
||||
|
||||
Reference in New Issue
Block a user