Propagate custom rtcp intervals in VideoSendStream
when creating RtpRtcp modules.
Bug: webrtc:8789
Change-Id: Ia4a4f439a2b9c14aa7b7d95fef5778a6044ea1aa
Reviewed-on: https://webrtc-review.googlesource.com/50500
Commit-Queue: Danil Chapovalov <danilchap@webrtc.org>
Reviewed-by: Erik Språng <sprang@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#22053}
diff --git a/video/video_send_stream.cc b/video/video_send_stream.cc
index a7b1dc5..b956b08 100644
--- a/video/video_send_stream.cc
+++ b/video/video_send_stream.cc
@@ -63,7 +63,7 @@
OverheadObserver* overhead_observer,
size_t num_modules,
RtpKeepAliveConfig keepalive_config,
- RtcpIntervalConfig rtc_interval_config) {
+ RtcpIntervalConfig rtcp_interval_config) {
RTC_DCHECK_GT(num_modules, 0);
RtpRtcp::Configuration configuration;
configuration.audio = false;
@@ -87,6 +87,7 @@
configuration.retransmission_rate_limiter = retransmission_rate_limiter;
configuration.overhead_observer = overhead_observer;
configuration.keepalive_config = keepalive_config;
+ configuration.rtcp_interval_config = rtcp_interval_config;
std::vector<RtpRtcp*> modules;
for (size_t i = 0; i < num_modules; ++i) {
RtpRtcp* rtp_rtcp = RtpRtcp::CreateRtpRtcp(configuration);