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

Unified Diff: webrtc/video/receive_statistics_proxy.cc

Issue 2654163006: Reland of Make RTX pt/apt reconfigurable by calling WebRtcVideoChannel2::SetRecvParameters. (Closed)
Patch Set: Update transition code. Created 3 years, 11 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
« no previous file with comments | « webrtc/video/end_to_end_tests.cc ('k') | webrtc/video/rtp_stream_receiver.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/video/receive_statistics_proxy.cc
diff --git a/webrtc/video/receive_statistics_proxy.cc b/webrtc/video/receive_statistics_proxy.cc
index 68050ba6a8a440dcc3eb31a4edf22127d99949c0..ba9184a2d4a7a7d2c8c9ed8800d185a8d49716f4 100644
--- a/webrtc/video/receive_statistics_proxy.cc
+++ b/webrtc/video/receive_statistics_proxy.cc
@@ -71,8 +71,11 @@ ReceiveStatisticsProxy::ReceiveStatisticsProxy(
freq_offset_counter_(clock, nullptr, kFreqOffsetProcessIntervalMs),
first_report_block_time_ms_(-1) {
stats_.ssrc = config_.rtp.remote_ssrc;
- for (auto it : config_.rtp.rtx)
- rtx_stats_[it.second.ssrc] = StreamDataCounters();
+ // TODO(brandtr): Replace |rtx_stats_| with a single instance of
+ // StreamDataCounters.
+ if (config_.rtp.rtx_ssrc) {
+ rtx_stats_[config_.rtp.rtx_ssrc] = StreamDataCounters();
+ }
}
ReceiveStatisticsProxy::~ReceiveStatisticsProxy() {
« no previous file with comments | « webrtc/video/end_to_end_tests.cc ('k') | webrtc/video/rtp_stream_receiver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698