aboutsummaryrefslogtreecommitdiff
path: root/video/rtp_video_stream_receiver2.cc
diff options
context:
space:
mode:
authorTommi <tommi@webrtc.org>2022-05-09 20:46:57 +0000
committerWebRTC LUCI CQ <webrtc-scoped@luci-project-accounts.iam.gserviceaccount.com>2022-05-10 13:50:31 +0000
commitcf4ed1516e28c0bf698c88530702ad9ff0835eae (patch)
treeaa7ab2d15af8f86f3587e522d3d0e854a6299192 /video/rtp_video_stream_receiver2.cc
parentedcb25b623b2e8e74ca35d82c1efa4eedea940b7 (diff)
downloadwebrtc-cf4ed1516e28c0bf698c88530702ad9ff0835eae.tar.gz
Add GetRtpExtensionMap to ReceiveStream and remove GetRtpExtensions.
GetRtpExtensions() is still used in one corner case for audio receive streams, so GetRtpExtensions has migrated to AudioReceiveStream. Updated FlexfecReceiveStream config management (incl. pass by value) and now store an RtpHeaderExtensionMap in FlexfecReceiveStreamImpl. Call GetRtpExtensionMap() from call.cc instead of constructing one on the fly for each rtp packet (for video packets at least). Bug: webrtc:11993 Change-Id: Id90ec5d43ea368f58edd6f17cb39d8c54aec641f Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/261800 Reviewed-by: Niels Moller <nisse@webrtc.org> Commit-Queue: Tomas Gunnarsson <tommi@webrtc.org> Cr-Commit-Position: refs/heads/main@{#36839}
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 46fa2d94e7..886d1bdd6f 100644
--- a/video/rtp_video_stream_receiver2.cc
+++ b/video/rtp_video_stream_receiver2.cc
@@ -912,6 +912,11 @@ void RtpVideoStreamReceiver2::SetRtpExtensions(
rtp_header_extensions_.Reset(extensions);
}
+const RtpHeaderExtensionMap& RtpVideoStreamReceiver2::GetRtpExtensions() const {
+ RTC_DCHECK_RUN_ON(&packet_sequence_checker_);
+ return rtp_header_extensions_;
+}
+
void RtpVideoStreamReceiver2::UpdateRtt(int64_t max_rtt_ms) {
RTC_DCHECK_RUN_ON(&worker_task_checker_);
if (nack_module_)