From 23bdb6773ed0e3f8ca2ab7722a4ffe7830527f95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20M=C3=B6ller?= Date: Thu, 24 Aug 2017 10:05:15 +0200 Subject: [PATCH] New accessor function VideoReceiveStream::Config::Rtp::AddRtxBinding Needed temporarily, to enable landing of https://codereview.webrtc.org/3000273002/ without breaking downstream applications. Bug: webrtc:7135 Change-Id: Ib0783d2e97cc62bb0a6e6fb394a29a5373938054 Reviewed-on: https://chromium-review.googlesource.com/631679 Reviewed-by: Rasmus Brandt Reviewed-by: Danil Chapovalov Reviewed-by: Fredrik Solenberg Commit-Queue: Niels Moller Cr-Commit-Position: refs/heads/master@{#19490} --- webrtc/call/video_receive_stream.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/webrtc/call/video_receive_stream.h b/webrtc/call/video_receive_stream.h index 6e943827e8..bd4b9976f6 100644 --- a/webrtc/call/video_receive_stream.h +++ b/webrtc/call/video_receive_stream.h @@ -171,7 +171,11 @@ class VideoReceiveStream { // Map from video payload type (apt) -> RTX payload type (pt). // For RTX to be enabled, both an SSRC and this mapping are needed. std::map rtx_payload_types; - + // TODO(nisse): This is a temporary accessor function to enable + // reversing and renaming of the rtx_payload_types mapping. + void AddRtxBinding(int rtx_payload_type, int media_payload_type) { + rtx_payload_types[media_payload_type] = rtx_payload_type; + } // RTP header extensions used for the received stream. std::vector extensions; } rtp;