Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(115)

Unified Diff: webrtc/video/video_receive_stream.cc

Issue 2712683002: Add |protected_by_flexfec| flag to VideoReceiveStream::Config. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();

Powered by Google App Engine
This is Rietveld 408576698