Add back an override of RestoreOriginalPacket.

External consumers may have a dependency on the old name, so this will give them the opportunity to switch over.

BUG=

Review URL: https://codereview.webrtc.org/1414543002

Cr-Commit-Position: refs/heads/master@{#10310}
This commit is contained in:
noahric 2015-10-17 01:06:42 -07:00 committed by Commit bot
parent 89f168a05d
commit 3eab10d629
2 changed files with 18 additions and 0 deletions

View File

@ -83,6 +83,15 @@ class RTPPayloadRegistry {
bool IsRtx(const RTPHeader& header) const;
// DEPRECATED. Use RestoreOriginalPacket below that takes a uint8_t*
// restored_packet, instead of a uint8_t**.
// TODO(noahric): Remove this when all callers have been updated.
bool RestoreOriginalPacket(uint8_t** restored_packet,
const uint8_t* packet,
size_t* packet_length,
uint32_t original_ssrc,
const RTPHeader& header) const;
bool RestoreOriginalPacket(uint8_t* restored_packet,
const uint8_t* packet,
size_t* packet_length,

View File

@ -232,6 +232,15 @@ bool RTPPayloadRegistry::IsRtxInternal(const RTPHeader& header) const {
return rtx_ && ssrc_rtx_ == header.ssrc;
}
bool RTPPayloadRegistry::RestoreOriginalPacket(uint8_t** restored_packet,
const uint8_t* packet,
size_t* packet_length,
uint32_t original_ssrc,
const RTPHeader& header) const {
return RestoreOriginalPacket(*restored_packet, packet, packet_length,
original_ssrc, header);
}
bool RTPPayloadRegistry::RestoreOriginalPacket(uint8_t* restored_packet,
const uint8_t* packet,
size_t* packet_length,