AcmReceiver: Eliminate AcmReceiver::decoders_

BUG=webrtc:5801

Review-Url: https://codereview.webrtc.org/2351183002
Cr-Commit-Position: refs/heads/master@{#14335}
This commit is contained in:
kwiberg
2016-09-21 10:55:15 -07:00
committed by Commit bot
parent c5aea65b76
commit c4ccd4d61c
9 changed files with 53 additions and 40 deletions

View File

@ -457,6 +457,18 @@ rtc::Optional<CodecInst> NetEqImpl::GetDecoder(int payload_type) const {
return rtc::Optional<CodecInst>(ci);
}
const SdpAudioFormat* NetEqImpl::GetDecoderFormat(int payload_type) const {
rtc::CritScope lock(&crit_sect_);
const DecoderDatabase::DecoderInfo* const di =
decoder_database_->GetDecoderInfo(payload_type);
if (!di) {
return nullptr; // Payload type not registered.
}
// This will return null if the payload type was registered without an
// SdpAudioFormat.
return di->GetFormat();
}
int NetEqImpl::SetTargetNumberOfChannels() {
return kNotImplemented;
}