Remove spammy GetRTPStatistics() log.
BUG=webrtc:5442
R=solenberg@webrtc.org
Review URL: https://codereview.webrtc.org/1695613003 .
Cr-Commit-Position: refs/heads/master@{#11596}
diff --git a/webrtc/voice_engine/channel.cc b/webrtc/voice_engine/channel.cc
index 148ef81..c078d20 100644
--- a/webrtc/voice_engine/channel.cc
+++ b/webrtc/voice_engine/channel.cc
@@ -2852,13 +2852,9 @@
RtcpStatistics statistics;
StreamStatistician* statistician =
rtp_receive_statistics_->GetStatistician(rtp_receiver_->SSRC());
- if (!statistician ||
- !statistician->GetStatistics(&statistics,
- _rtpRtcpModule->RTCP() == RtcpMode::kOff)) {
- _engineStatisticsPtr->SetLastError(
- VE_CANNOT_RETRIEVE_RTP_STAT, kTraceWarning,
- "GetRTPStatistics() failed to read RTP statistics from the "
- "RTP/RTCP module");
+ if (statistician) {
+ statistician->GetStatistics(&statistics,
+ _rtpRtcpModule->RTCP() == RtcpMode::kOff);
}
stats.fractionLost = statistics.fraction_lost;