diff options
author | pbos <pbos@webrtc.org> | 2015-07-07 08:32:48 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-07-07 15:32:56 +0000 |
commit | d436298332c7a7ecb51241f3a66588539c2ece83 (patch) | |
tree | 5e20b9d08c1a77866f56d7384304ce31298f9157 /webrtc/voice_engine/channel.cc | |
parent | 19492f1c4c7411b7632fe34824226c1c579a6412 (diff) | |
download | webrtc-d436298332c7a7ecb51241f3a66588539c2ece83.tar.gz |
Remove ResetStatistics from RTP feedback.
BUG=
R=asapersson@webrtc.org, stefan@webrtc.org
Review URL: https://codereview.webrtc.org/1213603002
Cr-Commit-Position: refs/heads/master@{#9548}
Diffstat (limited to 'webrtc/voice_engine/channel.cc')
-rw-r--r-- | webrtc/voice_engine/channel.cc | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/webrtc/voice_engine/channel.cc b/webrtc/voice_engine/channel.cc index 6dd64c7634..8992425b53 100644 --- a/webrtc/voice_engine/channel.cc +++ b/webrtc/voice_engine/channel.cc @@ -74,11 +74,6 @@ class StatisticsProxy : public RtcpStatisticsCallback { void CNameChanged(const char* cname, uint32_t ssrc) override {} - void ResetStatistics() { - CriticalSectionScoped cs(stats_lock_.get()); - stats_ = ChannelStatistics(); - } - ChannelStatistics GetStats() { CriticalSectionScoped cs(stats_lock_.get()); return stats_; @@ -340,15 +335,6 @@ void Channel::OnIncomingCSRCChanged(int32_t id, id, CSRC, added); } -void Channel::ResetStatistics(uint32_t ssrc) { - StreamStatistician* statistician = - rtp_receive_statistics_->GetStatistician(ssrc); - if (statistician) { - statistician->ResetStatistics(); - } - statistics_proxy_->ResetStatistics(); -} - int32_t Channel::OnInitializeDecoder( int32_t id, @@ -1206,8 +1192,7 @@ Channel::StopSend() // Reset sending SSRC and sequence number and triggers direct transmission // of RTCP BYE - if (_rtpRtcpModule->SetSendingStatus(false) == -1 || - _rtpRtcpModule->ResetSendDataCountersRTP() == -1) + if (_rtpRtcpModule->SetSendingStatus(false) == -1) { _engineStatisticsPtr->SetLastError( VE_RTP_RTCP_MODULE_ERROR, kTraceWarning, |