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..fcae546858fa3fb824c1e5ff37572464d18db178 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(AudioCodingModule::Config()); |
} |
-int VoEBaseImpl::CreateChannel(const Config& config) { |
+int VoEBaseImpl::CreateChannel(const AudioCodingModule::Config& acm_config) { |
rtc::CritScope cs(shared_->crit_sec()); |
if (!shared_->statistics().Initialized()) { |
shared_->SetLastError(VE_NOT_INITED, kTraceError); |
return -1; |
} |
+ |
+ AudioCodingModule::Config acm_config_copy; |
tommi
2016/09/01 21:02:11
what is this a copy of? should it be acm_config_c
the sun
2016/09/02 07:02:46
Yes, good catch!
|
+ acm_config_copy.decoder_factory = decoder_factory_; |
voe::ChannelOwner channel_owner = |
- shared_->channel_manager().CreateChannel(config, decoder_factory_); |
+ shared_->channel_manager().CreateChannel(acm_config_copy); |
return InitializeChannel(&channel_owner); |
} |