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

Unified Diff: webrtc/video/receive_statistics_proxy.cc

Issue 2646073004: Make RTX pt/apt reconfigurable by calling WebRtcVideoChannel2::SetRecvParameters. (Closed)
Patch Set: 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
Index: webrtc/video/receive_statistics_proxy.cc
diff --git a/webrtc/video/receive_statistics_proxy.cc b/webrtc/video/receive_statistics_proxy.cc
index 673fabb7bbb239da044530a2d74c1a0a2b09c691..0b0790421f1c1ddac6d1a95cebdedafa21402e0b 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() {

Powered by Google App Engine
This is Rietveld 408576698