Chromium Code Reviews| Index: webrtc/voice_engine/voe_base_impl.cc |
| diff --git a/webrtc/voice_engine/voe_base_impl.cc b/webrtc/voice_engine/voe_base_impl.cc |
| index 9c917b5881e57e4a3bab242fc822cb8ef03c2952..f74bdb1dbc106ad8c1e0a2f62523a51df51deab1 100644 |
| --- a/webrtc/voice_engine/voe_base_impl.cc |
| +++ b/webrtc/voice_engine/voe_base_impl.cc |
| @@ -12,7 +12,6 @@ |
| #include "webrtc/base/format_macros.h" |
| #include "webrtc/base/logging.h" |
| -#include "webrtc/common.h" |
| #include "webrtc/common_audio/signal_processing/include/signal_processing_library.h" |
| #include "webrtc/modules/audio_coding/codecs/builtin_audio_decoder_factory.h" |
| #include "webrtc/modules/audio_coding/include/audio_coding_module.h" |
| @@ -355,25 +354,20 @@ int VoEBaseImpl::Terminate() { |
| } |
| int VoEBaseImpl::CreateChannel() { |
| - rtc::CritScope cs(shared_->crit_sec()); |
| - if (!shared_->statistics().Initialized()) { |
| - shared_->SetLastError(VE_NOT_INITED, kTraceError); |
| - return -1; |
| - } |
| - |
| - voe::ChannelOwner channel_owner = |
| - shared_->channel_manager().CreateChannel(decoder_factory_); |
| - return InitializeChannel(&channel_owner); |
| + return CreateChannel(ChannelConfig()); |
| } |
| -int VoEBaseImpl::CreateChannel(const Config& config) { |
| +int VoEBaseImpl::CreateChannel(const ChannelConfig& config) { |
| rtc::CritScope cs(shared_->crit_sec()); |
| if (!shared_->statistics().Initialized()) { |
| shared_->SetLastError(VE_NOT_INITED, kTraceError); |
| return -1; |
| } |
| + |
| + ChannelConfig config_copy(config); |
| + config_copy.acm_config.decoder_factory = decoder_factory_; |
|
hlundin-webrtc
2016/09/05 11:28:42
decoder_factory in the config will never be used.
the sun
2016/09/05 15:25:04
Done. See comment in voe_base.h
hlundin-webrtc
2016/09/06 12:07:21
Acknowledged.
|
| voe::ChannelOwner channel_owner = |
| - shared_->channel_manager().CreateChannel(config, decoder_factory_); |
| + shared_->channel_manager().CreateChannel(config_copy); |
| return InitializeChannel(&channel_owner); |
| } |