From 23caa2d8d6d2492ffb21a4a6c2bf22fe896ed8c2 Mon Sep 17 00:00:00 2001 From: "asapersson@webrtc.org" Date: Mon, 24 Feb 2014 09:27:38 +0000 Subject: [PATCH] Fix to get total number of sent and received rtcp packets. BUG=2638 R=mflodman@webrtc.org Review URL: https://webrtc-codereview.appspot.com/8979005 git-svn-id: http://webrtc.googlecode.com/svn/trunk@5601 4adac7df-926f-26a2-2b94-8c16560cd09d --- webrtc/video_engine/vie_channel.cc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/webrtc/video_engine/vie_channel.cc b/webrtc/video_engine/vie_channel.cc index 695bce4a2..64d28f888 100644 --- a/webrtc/video_engine/vie_channel.cc +++ b/webrtc/video_engine/vie_channel.cc @@ -1395,6 +1395,14 @@ void ViEChannel::GetRtcpPacketTypeCounters( packets_sent->Add(sent); packets_received->Add(received); } + for (std::list::const_iterator it = removed_rtp_rtcp_.begin(); + it != removed_rtp_rtcp_.end(); ++it) { + RtcpPacketTypeCounter sent; + RtcpPacketTypeCounter received; + (*it)->GetRtcpPacketTypeCounters(&sent, &received); + packets_sent->Add(sent); + packets_received->Add(received); + } } void ViEChannel::GetBandwidthUsage(uint32_t* total_bitrate_sent,