Index: webrtc/video/video_send_stream.cc |
diff --git a/webrtc/video/video_send_stream.cc b/webrtc/video/video_send_stream.cc |
index 33e1f57575aa40fca810a7663b3b7b2710ff0b23..beaee5c8b93fa9decb69fb9aa06b790cf7afb567 100644 |
--- a/webrtc/video/video_send_stream.cc |
+++ b/webrtc/video/video_send_stream.cc |
@@ -196,8 +196,8 @@ VideoSendStream::VideoSendStream( |
vie_channel_->SetProtectionMode(enable_protection_nack, enable_protection_fec, |
config_.rtp.fec.red_payload_type, |
config_.rtp.fec.ulpfec_payload_type); |
- vie_encoder_->UpdateProtectionMethod(enable_protection_nack, |
- enable_protection_fec); |
+ vie_encoder_->SetProtectionMethod(enable_protection_nack, |
stefan-webrtc
2015/11/10 15:15:26
Why did you move this? If it needs to be here it s
pbos-webrtc
2015/11/10 15:18:51
Didn't move it, the call below was a no-op but the
|
+ enable_protection_fec); |
ConfigureSsrcs(); |
@@ -557,14 +557,8 @@ bool VideoSendStream::SetSendCodec(VideoCodec video_codec) { |
// to send on all SSRCs at once etc.) |
std::vector<uint32_t> used_ssrcs = config_.rtp.ssrcs; |
used_ssrcs.resize(static_cast<size_t>(video_codec.numberOfSimulcastStreams)); |
- |
- // Update used SSRCs. |
vie_encoder_->SetSsrcs(used_ssrcs); |
- // Update the protection mode, we might be switching NACK/FEC. |
- vie_encoder_->UpdateProtectionMethod(vie_encoder_->nack_enabled(), |
- vie_channel_->IsSendingFecEnabled()); |
- |
// Restart the media flow |
vie_encoder_->Restart(); |