Remove unused method AcmReceiver:RedPayloadType
BUG=webrtc:3520 Review URL: https://codereview.webrtc.org/1415313007 Cr-Commit-Position: refs/heads/master@{#10481}
This commit is contained in:

committed by
Commit bot

parent
792982b340
commit
1d5c9bd800
@ -533,21 +533,6 @@ int AcmReceiver::last_audio_codec_id() const {
|
|||||||
return last_audio_decoder_ ? last_audio_decoder_->acm_codec_id : -1;
|
return last_audio_decoder_ ? last_audio_decoder_->acm_codec_id : -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
int AcmReceiver::RedPayloadType() const {
|
|
||||||
const auto red_index =
|
|
||||||
RentACodec::CodecIndexFromId(RentACodec::CodecId::kRED);
|
|
||||||
if (red_index) {
|
|
||||||
CriticalSectionScoped lock(crit_sect_.get());
|
|
||||||
for (const auto& decoder_pair : decoders_) {
|
|
||||||
const Decoder& decoder = decoder_pair.second;
|
|
||||||
if (decoder.acm_codec_id == *red_index)
|
|
||||||
return decoder.payload_type;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
LOG(WARNING) << "RED is not registered.";
|
|
||||||
return -1;
|
|
||||||
}
|
|
||||||
|
|
||||||
int AcmReceiver::LastAudioCodec(CodecInst* codec) const {
|
int AcmReceiver::LastAudioCodec(CodecInst* codec) const {
|
||||||
CriticalSectionScoped lock(crit_sect_.get());
|
CriticalSectionScoped lock(crit_sect_.get());
|
||||||
if (!last_audio_decoder_) {
|
if (!last_audio_decoder_) {
|
||||||
|
@ -244,11 +244,6 @@ class AcmReceiver {
|
|||||||
//
|
//
|
||||||
int LastAudioCodec(CodecInst* codec) const;
|
int LastAudioCodec(CodecInst* codec) const;
|
||||||
|
|
||||||
//
|
|
||||||
// Return payload type of RED if it is registered, otherwise return -1;
|
|
||||||
//
|
|
||||||
int RedPayloadType() const;
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Get a decoder given its registered payload-type.
|
// Get a decoder given its registered payload-type.
|
||||||
//
|
//
|
||||||
|
Reference in New Issue
Block a user