Pointers were not dereferenced in GetRtpStatistics.

R=mflodman@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/9039005

git-svn-id: http://webrtc.googlecode.com/svn/trunk@6042 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
asapersson@webrtc.org 2014-05-02 13:24:42 +00:00
parent 24bd364d3e
commit 9205c87820

View File

@ -1075,8 +1075,17 @@ int32_t ViEChannel::GetRtpStatistics(uint32_t* bytes_sent,
uint32_t packets_sent_temp = 0;
RtpRtcp* rtp_rtcp = *it;
rtp_rtcp->DataCountersRTP(&bytes_sent_temp, &packets_sent_temp);
bytes_sent += bytes_sent_temp;
packets_sent += packets_sent_temp;
*bytes_sent += bytes_sent_temp;
*packets_sent += packets_sent_temp;
}
for (std::list<RtpRtcp*>::const_iterator it = removed_rtp_rtcp_.begin();
it != removed_rtp_rtcp_.end(); ++it) {
uint32_t bytes_sent_temp = 0;
uint32_t packets_sent_temp = 0;
RtpRtcp* rtp_rtcp = *it;
rtp_rtcp->DataCountersRTP(&bytes_sent_temp, &packets_sent_temp);
*bytes_sent += bytes_sent_temp;
*packets_sent += packets_sent_temp;
}
return 0;
}