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:
Erik Språng
2015-06-22 15:21:24 +02:00
parent 9874ee0d7a
commit bdc0b0d869
6 changed files with 114 additions and 215 deletions

View File

@ -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,