diff --git a/audio/channel_receive.cc b/audio/channel_receive.cc index 20cd0dba23..2df6a5c572 100644 --- a/audio/channel_receive.cc +++ b/audio/channel_receive.cc @@ -516,12 +516,7 @@ ChannelReceive::ChannelReceive( _moduleProcessThreadPtr->RegisterModule(_rtpRtcpModule.get(), RTC_FROM_HERE); - // Ensure that RTCP is enabled by default for the created channel. - // Note that, the module will keep generating RTCP until it is explicitly - // disabled by the user. - // After StopListen (when no sockets exists), RTCP packets will no longer - // be transmitted since the Transport object will then be invalid. - // RTCP is enabled by default. + // Ensure that RTCP is enabled for the created channel. _rtpRtcpModule->SetRTCPStatus(RtcpMode::kCompound); if (media_transport()) { @@ -907,10 +902,6 @@ int64_t ChannelReceive::GetRTT() const { return 0; } - RtcpMode method = _rtpRtcpModule->RTCP(); - if (method == RtcpMode::kOff) { - return 0; - } std::vector report_blocks; _rtpRtcpModule->RemoteRTCPStat(&report_blocks); diff --git a/audio/channel_send.cc b/audio/channel_send.cc index 212ef706f3..982d932e54 100644 --- a/audio/channel_send.cc +++ b/audio/channel_send.cc @@ -679,11 +679,6 @@ ChannelSend::ChannelSend(Clock* clock, _moduleProcessThreadPtr->RegisterModule(_rtpRtcpModule.get(), RTC_FROM_HERE); // Ensure that RTCP is enabled by default for the created channel. - // Note that, the module will keep generating RTCP until it is explicitly - // disabled by the user. - // After StopListen (when no sockets exists), RTCP packets will no longer - // be transmitted since the Transport object will then be invalid. - // RTCP is enabled by default. _rtpRtcpModule->SetRTCPStatus(RtcpMode::kCompound); int error = audio_coding_->RegisterTransportCallback(this); @@ -1150,10 +1145,6 @@ int64_t ChannelSend::GetRTT() const { return 0; } - RtcpMode method = _rtpRtcpModule->RTCP(); - if (method == RtcpMode::kOff) { - return 0; - } std::vector report_blocks; _rtpRtcpModule->RemoteRTCPStat(&report_blocks);