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
This commit is contained in:
asapersson@webrtc.org 2014-02-24 09:27:38 +00:00
parent 4f0801bd39
commit 23caa2d8d6

View File

@ -1395,6 +1395,14 @@ void ViEChannel::GetRtcpPacketTypeCounters(
packets_sent->Add(sent);
packets_received->Add(received);
}
for (std::list<RtpRtcp*>::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,