Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1367)

Unified Diff: modules/rtp_rtcp/source/rtcp_sender.cc

Issue 2997973002: Split LogRtpHeader and LogRtcpPacket into separate versions for incoming and outgoing packets.
Patch Set: Split VerifyRtpEvent into one incoming and one outgoing version. Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « logging/rtc_event_log/rtc_event_log_unittest_helper.cc ('k') | modules/rtp_rtcp/source/rtp_sender.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/rtp_rtcp/source/rtcp_sender.cc
diff --git a/modules/rtp_rtcp/source/rtcp_sender.cc b/modules/rtp_rtcp/source/rtcp_sender.cc
index 9145bbce1609000b1beac1d0cc3af5a856bfab2e..c7e75b67e7c30b2320842c2dc07a4fe8ac83f383 100644
--- a/modules/rtp_rtcp/source/rtcp_sender.cc
+++ b/modules/rtp_rtcp/source/rtcp_sender.cc
@@ -99,7 +99,8 @@ class PacketContainer : public rtcp::CompoundPacket,
if (transport_->SendRtcp(data, length)) {
bytes_sent_ += length;
if (event_log_) {
- event_log_->LogRtcpPacket(kOutgoingPacket, data, length);
+ event_log_->LogOutgoingRtcpPacket(
+ rtc::ArrayView<const uint8_t>(data, length));
}
}
}
@@ -962,7 +963,8 @@ bool RTCPSender::SendFeedbackPacket(const rtcp::TransportFeedback& packet) {
void OnPacketReady(uint8_t* data, size_t length) override {
if (transport_->SendRtcp(data, length)) {
if (event_log_) {
- event_log_->LogRtcpPacket(kOutgoingPacket, data, length);
+ event_log_->LogOutgoingRtcpPacket(
+ rtc::ArrayView<const uint8_t>(data, length));
}
} else {
send_failure_ = true;
« no previous file with comments | « logging/rtc_event_log/rtc_event_log_unittest_helper.cc ('k') | modules/rtp_rtcp/source/rtp_sender.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698