aboutsummaryrefslogtreecommitdiff
path: root/video/rtp_video_stream_receiver2.cc
diff options
context:
space:
mode:
authorTommi <tommi@webrtc.org>2022-07-14 18:33:42 +0200
committerWebRTC LUCI CQ <webrtc-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-07-14 20:51:08 +0000
commitaeb4412e09ed4e8b21c27a57cc8649bbb58221d6 (patch)
treee345b88b030679f7fd2bde3889e2f9d3976c5563 /video/rtp_video_stream_receiver2.cc
parentf6221058d3ba782af6b63422d9f830e3de162b6c (diff)
downloadwebrtc-aeb4412e09ed4e8b21c27a57cc8649bbb58221d6.tar.gz
Video and flexfec receive stream config changes without recreate.
SetFeedbackParameters no longer recreates the embedded streams for: - transport cc flag - rtcp status Bug: none Change-Id: If6117a1ae760ca9a02f06bbfa2b46c6e0f448cfc Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/268281 Reviewed-by: Philip Eliasson <philipel@webrtc.org> Commit-Queue: Tomas Gunnarsson <tommi@webrtc.org> Cr-Commit-Position: refs/heads/main@{#37526}
Diffstat (limited to 'video/rtp_video_stream_receiver2.cc')
-rw-r--r--video/rtp_video_stream_receiver2.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/video/rtp_video_stream_receiver2.cc b/video/rtp_video_stream_receiver2.cc
index 6cd2083b5b..66af08dcc7 100644
--- a/video/rtp_video_stream_receiver2.cc
+++ b/video/rtp_video_stream_receiver2.cc
@@ -933,6 +933,11 @@ void RtpVideoStreamReceiver2::OnLocalSsrcChange(uint32_t local_ssrc) {
rtp_rtcp_->SetLocalSsrc(local_ssrc);
}
+void RtpVideoStreamReceiver2::SetRtcpMode(RtcpMode mode) {
+ RTC_DCHECK_RUN_ON(&packet_sequence_checker_);
+ rtp_rtcp_->SetRTCPStatus(mode);
+}
+
absl::optional<int64_t> RtpVideoStreamReceiver2::LastReceivedPacketMs() const {
RTC_DCHECK_RUN_ON(&packet_sequence_checker_);
if (last_received_rtp_system_time_) {