Deprecate legacy RtpHeaderExtensionMap::Register function
Bug: None Change-Id: Ia27ecf4d316563c5f7693162aedff535855c403b Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/152667 Reviewed-by: Philip Eliasson <philipel@webrtc.org> Commit-Queue: Danil Chapovalov <danilchap@webrtc.org> Cr-Commit-Position: refs/heads/master@{#29170}
This commit is contained in:
committed by
Commit Bot
parent
aa5a75d5e3
commit
a74e47759e
@ -19,6 +19,7 @@
|
||||
#include "api/rtp_parameters.h"
|
||||
#include "modules/rtp_rtcp/include/rtp_rtcp_defines.h"
|
||||
#include "rtc_base/checks.h"
|
||||
#include "rtc_base/deprecation.h"
|
||||
|
||||
namespace webrtc {
|
||||
|
||||
@ -51,7 +52,7 @@ class RtpHeaderExtensionMap {
|
||||
}
|
||||
|
||||
// TODO(danilchap): Remove use of the functions below.
|
||||
int32_t Register(RTPExtensionType type, int id) {
|
||||
RTC_DEPRECATED int32_t Register(RTPExtensionType type, int id) {
|
||||
return RegisterByType(id, type) ? 0 : -1;
|
||||
}
|
||||
int32_t Deregister(RTPExtensionType type);
|
||||
|
||||
Reference in New Issue
Block a user