From 7dbcf9923f2c71bbe153afb89f639fc0bd24058b Mon Sep 17 00:00:00 2001 From: Harald Alvestrand Date: Mon, 17 Aug 2020 14:04:29 +0200 Subject: [PATCH] Deprecate RtpTransceiver.setDirection() This is part of the work to add a return value to the function. Bug: chromium:980879 Change-Id: Ifa5e491a6b493a927da9783f23bf9f44be81aa8a Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/181863 Reviewed-by: Guido Urdaneta Commit-Queue: Harald Alvestrand Cr-Commit-Position: refs/heads/master@{#31950} --- api/rtp_transceiver_interface.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/rtp_transceiver_interface.h b/api/rtp_transceiver_interface.h index cdda34b193..fd3555fb40 100644 --- a/api/rtp_transceiver_interface.h +++ b/api/rtp_transceiver_interface.h @@ -111,7 +111,8 @@ class RTC_EXPORT RtpTransceiverInterface : public rtc::RefCountInterface { // https://w3c.github.io/webrtc-pc/#dom-rtcrtptransceiver-direction // TODO(hta): Deprecate SetDirection without error and rename // SetDirectionWithError to SetDirection, remove default implementations. - virtual void SetDirection(RtpTransceiverDirection new_direction); + RTC_DEPRECATED virtual void SetDirection( + RtpTransceiverDirection new_direction); virtual RTCError SetDirectionWithError(RtpTransceiverDirection new_direction); // The current_direction attribute indicates the current direction negotiated