Index: webrtc/modules/rtp_rtcp/source/rtcp_packet.cc |
diff --git a/webrtc/modules/rtp_rtcp/source/rtcp_packet.cc b/webrtc/modules/rtp_rtcp/source/rtcp_packet.cc |
index 07ce33620ba6e451af9e65c62618ed32b13b0f91..7038532f2e991fa822b364a0e0e2e4327b630c0e 100644 |
--- a/webrtc/modules/rtp_rtcp/source/rtcp_packet.cc |
+++ b/webrtc/modules/rtp_rtcp/source/rtcp_packet.cc |
@@ -810,13 +810,12 @@ bool SenderReport::Create(uint8_t* packet, |
return true; |
} |
-bool SenderReport::WithReportBlock(ReportBlock* block) { |
- assert(block); |
+bool SenderReport::WithReportBlock(const ReportBlock& block) { |
if (report_blocks_.size() >= kMaxNumberOfReportBlocks) { |
LOG(LS_WARNING) << "Max report blocks reached."; |
return false; |
} |
- report_blocks_.push_back(block->report_block_); |
+ report_blocks_.push_back(block.report_block_); |
sr_.NumberOfReportBlocks = report_blocks_.size(); |
return true; |
} |
@@ -834,13 +833,12 @@ bool ReceiverReport::Create(uint8_t* packet, |
return true; |
} |
-bool ReceiverReport::WithReportBlock(ReportBlock* block) { |
- assert(block); |
+bool ReceiverReport::WithReportBlock(const ReportBlock& block) { |
if (report_blocks_.size() >= kMaxNumberOfReportBlocks) { |
LOG(LS_WARNING) << "Max report blocks reached."; |
return false; |
} |
- report_blocks_.push_back(block->report_block_); |
+ report_blocks_.push_back(block.report_block_); |
rr_.NumberOfReportBlocks = report_blocks_.size(); |
return true; |
} |