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

Unified Diff: call/call.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 | « no previous file | logging/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: call/call.cc
diff --git a/call/call.cc b/call/call.cc
index 1bfde2e69239641c52001c2fac7401aad24e6ca0..8bfab8a493a2efef59263049990aa01d6577c42b 100644
--- a/call/call.cc
+++ b/call/call.cc
@@ -1303,7 +1303,7 @@ PacketReceiver::DeliveryStatus Call::DeliverRtcp(MediaType media_type,
}
if (rtcp_delivered)
- event_log_->LogRtcpPacket(kIncomingPacket, packet, length);
+ event_log_->LogIncomingRtcpPacket(rtc::MakeArrayView(packet, length));
return rtcp_delivered ? DELIVERY_OK : DELIVERY_PACKET_ERROR;
}
@@ -1352,7 +1352,7 @@ PacketReceiver::DeliveryStatus Call::DeliverRtp(MediaType media_type,
if (audio_receiver_controller_.OnRtpPacket(*parsed_packet)) {
received_bytes_per_second_counter_.Add(static_cast<int>(length));
received_audio_bytes_per_second_counter_.Add(static_cast<int>(length));
- event_log_->LogRtpHeader(kIncomingPacket, packet, length);
+ event_log_->LogIncomingRtpHeader(*parsed_packet);
const int64_t arrival_time_ms = parsed_packet->arrival_time_ms();
if (!first_received_rtp_audio_ms_) {
first_received_rtp_audio_ms_.emplace(arrival_time_ms);
@@ -1364,7 +1364,7 @@ PacketReceiver::DeliveryStatus Call::DeliverRtp(MediaType media_type,
if (video_receiver_controller_.OnRtpPacket(*parsed_packet)) {
received_bytes_per_second_counter_.Add(static_cast<int>(length));
received_video_bytes_per_second_counter_.Add(static_cast<int>(length));
- event_log_->LogRtpHeader(kIncomingPacket, packet, length);
+ event_log_->LogIncomingRtpHeader(*parsed_packet);
const int64_t arrival_time_ms = parsed_packet->arrival_time_ms();
if (!first_received_rtp_video_ms_) {
first_received_rtp_video_ms_.emplace(arrival_time_ms);
« no previous file with comments | « no previous file | logging/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698