aboutsummaryrefslogtreecommitdiff
path: root/video/rtp_video_stream_receiver2.cc
diff options
context:
space:
mode:
authorTommi <tommi@webrtc.org>2021-09-08 10:44:50 +0200
committerWebRTC LUCI CQ <webrtc-scoped@luci-project-accounts.iam.gserviceaccount.com>2021-09-08 13:39:36 +0000
commit1f38a38b6f1ecd19cfaa956f108063e9b160bd43 (patch)
tree1c1580e700870052412f3698b96ad2c8e5533b39 /video/rtp_video_stream_receiver2.cc
parent9af2d922877545b01699d650e344b3d53b92cc71 (diff)
downloadwebrtc-1f38a38b6f1ecd19cfaa956f108063e9b160bd43.tar.gz
Add ability to set rtp header extensions without recreating streams.
Setting the rtp header extensions on the packet delivery thread (currently worker, soon to be network), is now possible without taking the hit of deleting and recreating the receive stream (and rtp receiver and related state). Bug: webrtc:11993 Change-Id: I9bbe306844a25d85d79cd216092ead66eaf68960 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/223741 Reviewed-by: Niels Moller <nisse@webrtc.org> Commit-Queue: Tommi <tommi@webrtc.org> Cr-Commit-Position: refs/heads/main@{#34953}
Diffstat (limited to 'video/rtp_video_stream_receiver2.cc')
-rw-r--r--video/rtp_video_stream_receiver2.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/video/rtp_video_stream_receiver2.cc b/video/rtp_video_stream_receiver2.cc
index b4a139edb6..309d158873 100644
--- a/video/rtp_video_stream_receiver2.cc
+++ b/video/rtp_video_stream_receiver2.cc
@@ -907,6 +907,12 @@ void RtpVideoStreamReceiver2::SetDepacketizerToDecoderFrameTransformer(
frame_transformer_delegate_->Init();
}
+void RtpVideoStreamReceiver2::SetRtpExtensions(
+ const std::vector<RtpExtension>& extensions) {
+ RTC_DCHECK_RUN_ON(&packet_sequence_checker_);
+ rtp_header_extensions_.Reset(extensions);
+}
+
void RtpVideoStreamReceiver2::UpdateRtt(int64_t max_rtt_ms) {
RTC_DCHECK_RUN_ON(&worker_task_checker_);
if (nack_module_)