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:
@ -104,9 +104,7 @@ bool IsPayloadTypeValid(int8_t payload_type) {
|
||||
|
||||
RTPPayloadRegistry::RTPPayloadRegistry()
|
||||
: last_received_payload_type_(-1),
|
||||
last_received_media_payload_type_(-1),
|
||||
rtx_(false),
|
||||
ssrc_rtx_(0) {}
|
||||
last_received_media_payload_type_(-1) {}
|
||||
|
||||
RTPPayloadRegistry::~RTPPayloadRegistry() = default;
|
||||
|
||||
@ -261,23 +259,6 @@ int32_t RTPPayloadRegistry::ReceivePayloadType(const VideoCodec& video_codec,
|
||||
return -1;
|
||||
}
|
||||
|
||||
bool RTPPayloadRegistry::RtxEnabled() const {
|
||||
rtc::CritScope cs(&crit_sect_);
|
||||
return rtx_;
|
||||
}
|
||||
|
||||
void RTPPayloadRegistry::SetRtxSsrc(uint32_t ssrc) {
|
||||
rtc::CritScope cs(&crit_sect_);
|
||||
ssrc_rtx_ = ssrc;
|
||||
rtx_ = true;
|
||||
}
|
||||
|
||||
bool RTPPayloadRegistry::GetRtxSsrc(uint32_t* ssrc) const {
|
||||
rtc::CritScope cs(&crit_sect_);
|
||||
*ssrc = ssrc_rtx_;
|
||||
return rtx_;
|
||||
}
|
||||
|
||||
bool RTPPayloadRegistry::IsRed(const RTPHeader& header) const {
|
||||
rtc::CritScope cs(&crit_sect_);
|
||||
auto it = payload_type_map_.find(header.payloadType);
|
||||
|
||||
Reference in New Issue
Block a user