From 4baaf99c5e51822ab464f87bef598578278cb613 Mon Sep 17 00:00:00 2001 From: Danil Chapovalov Date: Mon, 11 Apr 2022 15:23:22 +0200 Subject: [PATCH] Delete deprecated function in RtpVideoStreamReceiver that references VideoCodec struct MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bug: webrtc:13045 Change-Id: I71c70765d1c265ead1f6fa314733ccb6b61ace15 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/258684 Auto-Submit: Danil Chapovalov Reviewed-by: Åsa Persson Commit-Queue: Åsa Persson Cr-Commit-Position: refs/heads/main@{#36528} --- video/BUILD.gn | 1 - video/rtp_video_stream_receiver.h | 11 ----------- 2 files changed, 12 deletions(-) diff --git a/video/BUILD.gn b/video/BUILD.gn index 6a86553a07..53f8fa1d8e 100644 --- a/video/BUILD.gn +++ b/video/BUILD.gn @@ -185,7 +185,6 @@ rtc_source_set("video_legacy") { "../api/video:recordable_encoded_frame", "../api/video:video_frame", "../api/video:video_rtp_headers", - "../api/video_codecs:video_codecs_api", "../call:call_interfaces", "../call:rtp_interfaces", "../call:rtp_receiver", # For RtxReceiveStream. diff --git a/video/rtp_video_stream_receiver.h b/video/rtp_video_stream_receiver.h index f46f257da5..0519cbcc96 100644 --- a/video/rtp_video_stream_receiver.h +++ b/video/rtp_video_stream_receiver.h @@ -18,7 +18,6 @@ #include #include -#include "absl/base/attributes.h" #include "absl/types/optional.h" #include "api/array_view.h" #include "api/crypto/frame_decryptor_interface.h" @@ -27,7 +26,6 @@ #include "api/units/timestamp.h" #include "api/video/color_space.h" #include "api/video/video_codec_type.h" -#include "api/video_codecs/video_codec.h" #include "call/rtp_packet_sink_interface.h" #include "call/syncable.h" #include "call/video_receive_stream.h" @@ -133,15 +131,6 @@ class RtpVideoStreamReceiver : public LossNotificationSender, const std::map& codec_params, bool raw_payload); - ABSL_DEPRECATED("Use AddReceiveCodec above") - void AddReceiveCodec(uint8_t payload_type, - const VideoCodec& video_codec, - const std::map& codec_params, - bool raw_payload) { - AddReceiveCodec(payload_type, video_codec.codecType, codec_params, - raw_payload); - } - void StartReceive(); void StopReceive();