Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(58)

Unified Diff: webrtc/modules/rtp_rtcp/source/receive_statistics_impl.cc

Issue 1213603002: Remove ResetStatistics from RTP feedback. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: comment + rebase Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/modules/rtp_rtcp/source/receive_statistics_impl.cc
diff --git a/webrtc/modules/rtp_rtcp/source/receive_statistics_impl.cc b/webrtc/modules/rtp_rtcp/source/receive_statistics_impl.cc
index 3846558975106f4daecc4b32cf65c8fe85507ce0..01116d6e606e6b896c513348c05b2559c40fc960 100644
--- a/webrtc/modules/rtp_rtcp/source/receive_statistics_impl.cc
+++ b/webrtc/modules/rtp_rtcp/source/receive_statistics_impl.cc
@@ -51,22 +51,6 @@ StreamStatisticianImpl::StreamStatisticianImpl(
rtcp_callback_(rtcp_callback),
rtp_callback_(rtp_callback) {}
-void StreamStatisticianImpl::ResetStatistics() {
- CriticalSectionScoped cs(stream_lock_.get());
- last_report_inorder_packets_ = 0;
- last_report_old_packets_ = 0;
- last_report_seq_max_ = 0;
- last_reported_statistics_ = RtcpStatistics();
- jitter_q4_ = 0;
- cumulative_loss_ = 0;
- jitter_q4_transmission_time_offset_ = 0;
- received_seq_wraps_ = 0;
- received_seq_max_ = 0;
- received_seq_first_ = 0;
- stored_sum_receive_counters_.Add(receive_counters_);
- receive_counters_ = StreamDataCounters();
-}
-
void StreamStatisticianImpl::IncomingPacket(const RTPHeader& header,
size_t packet_length,
bool retransmitted) {
@@ -320,7 +304,6 @@ void StreamStatisticianImpl::GetReceiveStreamDataCounters(
StreamDataCounters* data_counters) const {
CriticalSectionScoped cs(stream_lock_.get());
*data_counters = receive_counters_;
- data_counters->Add(stored_sum_receive_counters_);
}
uint32_t StreamStatisticianImpl::BitrateReceived() const {

Powered by Google App Engine
This is Rietveld 408576698