Index: webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.cc |
diff --git a/webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.cc b/webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.cc |
index 3c986e98c210e62bc171c98b13be4c6b1c51b0d9..ed0b63cea0a45dfcf796cb578b5def5616b19665 100644 |
--- a/webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.cc |
+++ b/webrtc/modules/rtp_rtcp/source/rtp_rtcp_impl.cc |
@@ -100,7 +100,6 @@ ModuleRtpRtcpImpl::ModuleRtpRtcpImpl(const Configuration& configuration) |
this), |
clock_(configuration.clock), |
audio_(configuration.audio), |
- collision_detected_(false), |
last_process_time_(configuration.clock->TimeInMilliseconds()), |
last_bitrate_process_time_(configuration.clock->TimeInMilliseconds()), |
last_rtt_process_time_(configuration.clock->TimeInMilliseconds()), |
@@ -355,19 +354,6 @@ int32_t ModuleRtpRtcpImpl::SetSendingStatus(const bool sending) { |
if (rtcp_sender_.SetSendingStatus(GetFeedbackState(), sending) != 0) { |
LOG(LS_WARNING) << "Failed to send RTCP BYE"; |
} |
- |
danilchap
2017/02/01 12:23:55
I also think this block is obsolete, tried remove
|
- collision_detected_ = false; |
- |
- // Generate a new SSRC for the next "call" if false |
- rtp_sender_.SetSendingStatus(sending); |
- |
- // Make sure that RTCP objects are aware of our SSRC (it could have changed |
- // Due to collision) |
- uint32_t SSRC = rtp_sender_.SSRC(); |
- rtcp_sender_.SetSSRC(SSRC); |
- SetRtcpReceiverSsrcs(SSRC); |
- |
- return 0; |
} |
return 0; |
} |
@@ -785,24 +771,6 @@ void ModuleRtpRtcpImpl::SetRemoteSSRC(const uint32_t ssrc) { |
// Inform about the incoming SSRC. |
rtcp_sender_.SetRemoteSSRC(ssrc); |
rtcp_receiver_.SetRemoteSSRC(ssrc); |
- |
- // Check for a SSRC collision. |
- if (rtp_sender_.SSRC() == ssrc && !collision_detected_) { |
- // If we detect a collision change the SSRC but only once. |
- collision_detected_ = true; |
- uint32_t new_ssrc = rtp_sender_.GenerateNewSSRC(); |
- if (new_ssrc == 0) { |
- // Configured via API ignore. |
- return; |
- } |
- if (RtcpMode::kOff != rtcp_sender_.Status()) { |
- // Send RTCP bye on the current SSRC. |
- SendRTCP(kRtcpBye); |
- } |
- // Change local SSRC and inform all objects about the new SSRC. |
- rtcp_sender_.SetSSRC(new_ssrc); |
- SetRtcpReceiverSsrcs(new_ssrc); |
- } |
} |
void ModuleRtpRtcpImpl::BitrateSent(uint32_t* total_rate, |