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:
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user