Production code: Pass codec ID argument to audio codecs
Just a null ID for now, but future CLs will fix that. Bug: webrtc:8941 Change-Id: I393af0fef752ca3711421bdaf4b2e41cbe286bcf Reviewed-on: https://webrtc-review.googlesource.com/58093 Commit-Queue: Karl Wiberg <kwiberg@webrtc.org> Reviewed-by: Oskar Sundbom <ossu@webrtc.org> Cr-Commit-Position: refs/heads/master@{#22296}
This commit is contained in:
@ -496,7 +496,7 @@ bool AudioSendStream::SetupSendCodec(AudioSendStream* stream,
|
||||
RTC_DCHECK(new_config.encoder_factory);
|
||||
std::unique_ptr<AudioEncoder> encoder =
|
||||
new_config.encoder_factory->MakeAudioEncoder(spec.payload_type,
|
||||
spec.format);
|
||||
spec.format, rtc::nullopt);
|
||||
|
||||
if (!encoder) {
|
||||
RTC_DLOG(LS_ERROR) << "Unable to create encoder for " << spec.format;
|
||||
|
@ -83,7 +83,7 @@ AudioDecoder* DecoderDatabase::DecoderInfo::GetDecoder() const {
|
||||
// TODO(ossu): Keep a check here for now, since a number of tests create
|
||||
// DecoderInfos without factories.
|
||||
RTC_DCHECK(factory_);
|
||||
decoder_ = factory_->MakeAudioDecoder(audio_format_);
|
||||
decoder_ = factory_->MakeAudioDecoder(audio_format_, rtc::nullopt);
|
||||
}
|
||||
RTC_DCHECK(decoder_) << "Failed to create: " << audio_format_;
|
||||
return decoder_.get();
|
||||
|
Reference in New Issue
Block a user