From 982cd2a94ce21bbb2ad50c1f32bc6a9a09cc3ab3 Mon Sep 17 00:00:00 2001 From: "pbos@webrtc.org" Date: Tue, 3 Mar 2015 15:56:56 +0000 Subject: [PATCH] Filter receiver-side DataCountersUpdated on SSRC. BUG=1788,1667 R=stefan@webrtc.org Review URL: https://webrtc-codereview.appspot.com/44509004 Cr-Commit-Position: refs/heads/master@{#8575} git-svn-id: http://webrtc.googlecode.com/svn/trunk@8575 4adac7df-926f-26a2-2b94-8c16560cd09d --- webrtc/video/receive_statistics_proxy.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webrtc/video/receive_statistics_proxy.cc b/webrtc/video/receive_statistics_proxy.cc index 6e9505cf02..83b34dda1c 100644 --- a/webrtc/video/receive_statistics_proxy.cc +++ b/webrtc/video/receive_statistics_proxy.cc @@ -89,7 +89,8 @@ void ReceiveStatisticsProxy::DataCountersUpdated( const webrtc::StreamDataCounters& counters, uint32_t ssrc) { CriticalSectionScoped lock(crit_.get()); - + if (stats_.ssrc != ssrc) + return; stats_.rtp_stats = counters; }