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

Unified Diff: webrtc/modules/rtp_rtcp/source/rtp_sender.cc

Issue 2666533002: Add probe logging to RtcEventLog. (Closed)
Patch Set: |min_probes| --> |min_packets| Created 3 years, 10 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
Index: webrtc/modules/rtp_rtcp/source/rtp_sender.cc
diff --git a/webrtc/modules/rtp_rtcp/source/rtp_sender.cc b/webrtc/modules/rtp_rtcp/source/rtp_sender.cc
index 9ceebd99e02257027ebf137c7dfd59b8054e89ad..f64bb994fdb522ce23fa76a27bc282221cd3aff1 100644
--- a/webrtc/modules/rtp_rtcp/source/rtp_sender.cc
+++ b/webrtc/modules/rtp_rtcp/source/rtp_sender.cc
@@ -575,7 +575,7 @@ size_t RTPSender::SendPadData(size_t bytes, int probe_cluster_id) {
probe_cluster_id);
}
- if (!SendPacketToNetwork(padding_packet, options))
+ if (!SendPacketToNetwork(padding_packet, options, probe_cluster_id))
break;
bytes_sent += padding_bytes_in_packet;
@@ -628,7 +628,8 @@ int32_t RTPSender::ReSendPacket(uint16_t packet_id, int64_t min_resend_time) {
}
bool RTPSender::SendPacketToNetwork(const RtpPacketToSend& packet,
- const PacketOptions& options) {
+ const PacketOptions& options,
+ int probe_cluster_id) {
int bytes_sent = -1;
if (transport_) {
UpdateRtpOverhead(packet);
@@ -637,7 +638,7 @@ bool RTPSender::SendPacketToNetwork(const RtpPacketToSend& packet,
: -1;
if (event_log_ && bytes_sent > 0) {
event_log_->LogRtpHeader(kOutgoingPacket, MediaType::ANY, packet.data(),
- packet.size());
+ packet.size(), probe_cluster_id);
}
}
TRACE_EVENT_INSTANT2(TRACE_DISABLED_BY_DEFAULT("webrtc_rtp"),
@@ -758,7 +759,7 @@ bool RTPSender::PrepareAndSendPacket(std::unique_ptr<RtpPacketToSend> packet,
packet->Ssrc());
}
- if (!SendPacketToNetwork(*packet_to_send, options))
+ if (!SendPacketToNetwork(*packet_to_send, options, probe_cluster_id))
return false;
{
@@ -887,7 +888,7 @@ bool RTPSender::SendToNetwork(std::unique_ptr<RtpPacketToSend> packet,
UpdateOnSendPacket(options.packet_id, packet->capture_time_ms(),
packet->Ssrc());
- bool sent = SendPacketToNetwork(*packet, options);
+ bool sent = SendPacketToNetwork(*packet, options, PacketInfo::kNotAProbe);
if (sent) {
{

Powered by Google App Engine
This is Rietveld 408576698