Cleanup RtpHeaderExtensionMap removing use of two legacy functions
BUG=webrtc:1994 Review-Url: https://codereview.webrtc.org/2491273002 Cr-Commit-Position: refs/heads/master@{#15366}
This commit is contained in:
@ -53,7 +53,7 @@ bool RtpHeaderParserImpl::Parse(const uint8_t* packet,
|
||||
RtpHeaderExtensionMap map;
|
||||
{
|
||||
rtc::CritScope cs(&critical_section_);
|
||||
rtp_header_extension_map_.GetCopy(&map);
|
||||
map = rtp_header_extension_map_;
|
||||
}
|
||||
|
||||
const bool valid_rtpheader = rtp_parser.Parse(header, &map);
|
||||
@ -66,7 +66,7 @@ bool RtpHeaderParserImpl::Parse(const uint8_t* packet,
|
||||
bool RtpHeaderParserImpl::RegisterRtpHeaderExtension(RTPExtensionType type,
|
||||
uint8_t id) {
|
||||
rtc::CritScope cs(&critical_section_);
|
||||
return rtp_header_extension_map_.Register(type, id) == 0;
|
||||
return rtp_header_extension_map_.RegisterByType(id, type);
|
||||
}
|
||||
|
||||
bool RtpHeaderParserImpl::DeregisterRtpHeaderExtension(RTPExtensionType type) {
|
||||
|
||||
Reference in New Issue
Block a user