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:
parent
4f0801bd39
commit
23caa2d8d6
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user