Delete unused method RTPPayloadRegistry::SetRtxPayloadType.
And write-only mapping rtx_payload_type_map_. Bug: webrtc:8995 Change-Id: I5193d411587bc4eadb9521250519990781515a76 Reviewed-on: https://webrtc-review.googlesource.com/61041 Reviewed-by: Danil Chapovalov <danilchap@webrtc.org> Commit-Queue: Niels Moller <nisse@webrtc.org> Cr-Commit-Position: refs/heads/master@{#22369}
This commit is contained in:
@ -52,8 +52,6 @@ class RTPPayloadRegistry {
|
|||||||
|
|
||||||
bool GetRtxSsrc(uint32_t* ssrc) const;
|
bool GetRtxSsrc(uint32_t* ssrc) const;
|
||||||
|
|
||||||
void SetRtxPayloadType(int payload_type, int associated_payload_type);
|
|
||||||
|
|
||||||
bool IsRed(const RTPHeader& header) const;
|
bool IsRed(const RTPHeader& header) const;
|
||||||
|
|
||||||
int GetPayloadTypeFrequency(uint8_t payload_type) const;
|
int GetPayloadTypeFrequency(uint8_t payload_type) const;
|
||||||
@ -109,8 +107,6 @@ class RTPPayloadRegistry {
|
|||||||
int8_t last_received_payload_type_;
|
int8_t last_received_payload_type_;
|
||||||
int8_t last_received_media_payload_type_;
|
int8_t last_received_media_payload_type_;
|
||||||
bool rtx_;
|
bool rtx_;
|
||||||
// Mapping rtx_payload_type_map_[rtx] = associated.
|
|
||||||
std::map<int, int> rtx_payload_type_map_;
|
|
||||||
uint32_t ssrc_rtx_;
|
uint32_t ssrc_rtx_;
|
||||||
// Only warn once per payload type, if an RTX packet is received but
|
// Only warn once per payload type, if an RTX packet is received but
|
||||||
// no associated payload type found in |rtx_payload_type_map_|.
|
// no associated payload type found in |rtx_payload_type_map_|.
|
||||||
|
|||||||
@ -283,18 +283,6 @@ bool RTPPayloadRegistry::GetRtxSsrc(uint32_t* ssrc) const {
|
|||||||
return rtx_;
|
return rtx_;
|
||||||
}
|
}
|
||||||
|
|
||||||
void RTPPayloadRegistry::SetRtxPayloadType(int payload_type,
|
|
||||||
int associated_payload_type) {
|
|
||||||
rtc::CritScope cs(&crit_sect_);
|
|
||||||
if (payload_type < 0) {
|
|
||||||
RTC_LOG(LS_ERROR) << "Invalid RTX payload type: " << payload_type;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
rtx_payload_type_map_[payload_type] = associated_payload_type;
|
|
||||||
rtx_ = true;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool RTPPayloadRegistry::IsRed(const RTPHeader& header) const {
|
bool RTPPayloadRegistry::IsRed(const RTPHeader& header) const {
|
||||||
rtc::CritScope cs(&crit_sect_);
|
rtc::CritScope cs(&crit_sect_);
|
||||||
auto it = payload_type_map_.find(header.payloadType);
|
auto it = payload_type_map_.find(header.payloadType);
|
||||||
|
|||||||
Reference in New Issue
Block a user