Index: webrtc/video/video_receive_stream.cc |
diff --git a/webrtc/video/video_receive_stream.cc b/webrtc/video/video_receive_stream.cc |
index 7d8cfef21d4c4e6fb018d0b7c89c83dfd5030c5b..b598bde34f653e7d1efd93916e0c7f1e862d1675 100644 |
--- a/webrtc/video/video_receive_stream.cc |
+++ b/webrtc/video/video_receive_stream.cc |
@@ -174,7 +174,6 @@ namespace internal { |
VideoReceiveStream::VideoReceiveStream( |
int num_cpu_cores, |
- bool protected_by_flexfec, |
PacketRouter* packet_router, |
VideoReceiveStream::Config config, |
ProcessThread* process_thread, |
@@ -183,7 +182,6 @@ VideoReceiveStream::VideoReceiveStream( |
: transport_adapter_(config.rtcp_send_transport), |
config_(std::move(config)), |
num_cpu_cores_(num_cpu_cores), |
- protected_by_flexfec_(protected_by_flexfec), |
process_thread_(process_thread), |
clock_(Clock::GetRealTimeClock()), |
decode_thread_(DecodeThreadFunction, this, "DecodingThread"), |
@@ -275,8 +273,8 @@ void VideoReceiveStream::Start() { |
if (decode_thread_.IsRunning()) |
return; |
- bool protected_by_fec = |
- protected_by_flexfec_ || rtp_stream_receiver_.IsUlpfecEnabled(); |
+ bool protected_by_fec = config_.rtp.protected_by_flexfec || |
+ rtp_stream_receiver_.IsUlpfecEnabled(); |
if (jitter_buffer_experiment_) { |
frame_buffer_->Start(); |