Delete unused logic for audio RtcpMode::kOff

Bug: None
Change-Id: I740764818c5e6ea04a909c848c04531889c6ef96
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/150791
Reviewed-by: Oskar Sundbom <ossu@webrtc.org>
Commit-Queue: Niels Moller <nisse@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#29023}
This commit is contained in:
Niels Möller 2019-08-29 13:47:09 +02:00 committed by Commit Bot
parent e3e30ae5c5
commit b6220d9470
2 changed files with 1 additions and 19 deletions

View File

@ -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<RTCPReportBlock> report_blocks;
_rtpRtcpModule->RemoteRTCPStat(&report_blocks);

View File

@ -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<RTCPReportBlock> report_blocks;
_rtpRtcpModule->RemoteRTCPStat(&report_blocks);