Add send frame rate statistics callback

BUG=2235
R=mflodman@webrtc.org, pbos@webrtc.org, stefan@webrtc.org

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

git-svn-id: http://webrtc.googlecode.com/svn/trunk@5213 4adac7df-926f-26a2-2b94-8c16560cd09d
diff --git a/webrtc/modules/video_coding/main/source/receiver.cc b/webrtc/modules/video_coding/main/source/receiver.cc
index e0969ef..ae13ddd 100644
--- a/webrtc/modules/video_coding/main/source/receiver.cc
+++ b/webrtc/modules/video_coding/main/source/receiver.cc
@@ -238,8 +238,9 @@
 
 void VCMReceiver::ReceivedFrameCount(VCMFrameCount* frame_count) const {
   assert(frame_count);
-  jitter_buffer_.FrameStatistics(&frame_count->numDeltaFrames,
-                                 &frame_count->numKeyFrames);
+  std::map<FrameType, uint32_t> counts(jitter_buffer_.FrameStatistics());
+  frame_count->numDeltaFrames = counts[kVideoFrameDelta];
+  frame_count->numKeyFrames = counts[kVideoFrameKey];
 }
 
 uint32_t VCMReceiver::DiscardedPackets() const {