Delete unneeded Rtx methods from RTPPayloadRegistry.

Let RtpVideoStreamReceiver check its config instead.

Bug: webrtc:8995
Change-Id: I0d834d27ceb9de08009a8a67b518c5357dc3f9f0
Reviewed-on: https://webrtc-review.googlesource.com/61300
Reviewed-by: Erik Språng <sprang@webrtc.org>
Reviewed-by: Danil Chapovalov <danilchap@webrtc.org>
Commit-Queue: Niels Moller <nisse@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#22403}
This commit is contained in:
Niels Möller
2018-03-12 14:23:41 +01:00
committed by Commit Bot
parent be7b88c145
commit e63afff364
3 changed files with 2 additions and 38 deletions

View File

@ -46,12 +46,6 @@ class RTPPayloadRegistry {
int32_t ReceivePayloadType(const VideoCodec& video_codec,
int8_t* payload_type) const;
bool RtxEnabled() const;
void SetRtxSsrc(uint32_t ssrc);
bool GetRtxSsrc(uint32_t* ssrc) const;
bool IsRed(const RTPHeader& header) const;
int GetPayloadTypeFrequency(uint8_t payload_type) const;
@ -100,12 +94,6 @@ class RTPPayloadRegistry {
std::map<int, RtpUtility::Payload> payload_type_map_;
int8_t last_received_payload_type_;
int8_t last_received_media_payload_type_;
bool rtx_;
uint32_t ssrc_rtx_;
// Only warn once per payload type, if an RTX packet is received but
// no associated payload type found in |rtx_payload_type_map_|.
std::set<int> payload_types_with_suppressed_warnings_
RTC_GUARDED_BY(crit_sect_);
// As a first step in splitting this class up in separate cases for audio and
// video, DCHECK that no instance is used for both audio and video.