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

Unified Diff: webrtc/video/video_send_stream.cc

Issue 2973363002: Explicitly inform PacketRouter which RTP-RTCP modules are REMB-candidates (Closed)
Patch Set: Unit-tests added. Created 3 years, 5 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_send_stream.cc
diff --git a/webrtc/video/video_send_stream.cc b/webrtc/video/video_send_stream.cc
index 3565f9ca70ca8551bb7e4dcfd5efab6b7fa365bd..ef8db4b7aef9472d4fe2354ba7446bec27e98db5 100644
--- a/webrtc/video/video_send_stream.cc
+++ b/webrtc/video/video_send_stream.cc
@@ -842,8 +842,10 @@ VideoSendStreamImpl::VideoSendStreamImpl(
// We add the highest spatial layer first to ensure it'll be prioritized
// when sending padding, with the hope that the packet rate will be smaller,
// and that it's more important to protect than the lower layers.
- for (RtpRtcp* rtp_rtcp : rtp_rtcp_modules_)
- transport->packet_router()->AddSendRtpModule(rtp_rtcp);
+ for (RtpRtcp* rtp_rtcp : rtp_rtcp_modules_) {
+ constexpr bool remb_candidate = true;
+ transport->packet_router()->AddSendRtpModule(rtp_rtcp, remb_candidate);
+ }
for (size_t i = 0; i < config_->rtp.extensions.size(); ++i) {
const std::string& extension = config_->rtp.extensions[i].uri;

Powered by Google App Engine
This is Rietveld 408576698