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

Unified Diff: webrtc/call/call.cc

Issue 2649973005: Inform jitter buffer about FlexFEC protection. (Closed)
Patch Set: Take 2. Created 3 years, 11 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/call/call.cc
diff --git a/webrtc/call/call.cc b/webrtc/call/call.cc
index d37d08ef8e7ac824669c787f6672ac633d1648d3..12935006e2feab09084fc5cf2b3593a8c929f53b 100644
--- a/webrtc/call/call.cc
+++ b/webrtc/call/call.cc
@@ -638,10 +638,18 @@ webrtc::VideoReceiveStream* Call::CreateVideoReceiveStream(
webrtc::VideoReceiveStream::Config configuration) {
TRACE_EVENT0("webrtc", "Call::CreateVideoReceiveStream");
RTC_DCHECK(configuration_thread_checker_.CalledOnValidThread());
+
+ bool protected_by_flexfec = false;
+ {
+ ReadLockScoped read_lock(*receive_crit_);
+ protected_by_flexfec =
+ flexfec_receive_ssrcs_media_.find(configuration.rtp.remote_ssrc) !=
+ flexfec_receive_ssrcs_media_.end();
+ }
VideoReceiveStream* receive_stream = new VideoReceiveStream(
- num_cpu_cores_, congestion_controller_.get(), &packet_router_,
- std::move(configuration), voice_engine(), module_process_thread_.get(),
- call_stats_.get(), &remb_);
+ num_cpu_cores_, protected_by_flexfec, congestion_controller_.get(),
+ &packet_router_, std::move(configuration), voice_engine(),
+ module_process_thread_.get(), call_stats_.get(), &remb_);
const webrtc::VideoReceiveStream::Config& config = receive_stream->config();
{

Powered by Google App Engine
This is Rietveld 408576698