Index: webrtc/voice_engine/channel.cc |
diff --git a/webrtc/voice_engine/channel.cc b/webrtc/voice_engine/channel.cc |
index a17f546f4ed7a6f7b4b59c75e22fb1b0afa62200..6ec001218c5f86a3bd199c885660ca13b2dd333a 100644 |
--- a/webrtc/voice_engine/channel.cc |
+++ b/webrtc/voice_engine/channel.cc |
@@ -827,7 +827,8 @@ Channel::Channel(int32_t channelId, |
pacing_enabled_(config.Get<VoicePacing>().enabled), |
feedback_observer_proxy_(new TransportFeedbackProxy()), |
seq_num_allocator_proxy_(new TransportSequenceNumberProxy()), |
- rtp_packet_sender_proxy_(new RtpPacketSenderProxy()) { |
+ rtp_packet_sender_proxy_(new RtpPacketSenderProxy()), |
+ decoder_factory_(decoder_factory) { |
WEBRTC_TRACE(kTraceMemory, kTraceVoice, VoEId(_instanceId, _channelId), |
"Channel::Channel() - ctor"); |
AudioCodingModule::Config acm_config; |
@@ -1083,6 +1084,11 @@ void Channel::SetSink(std::unique_ptr<AudioSinkInterface> sink) { |
audio_sink_ = std::move(sink); |
} |
+const rtc::scoped_refptr<AudioDecoderFactory>& |
+Channel::GetAudioDecoderFactory() const { |
+ return decoder_factory_; |
+} |
+ |
int32_t Channel::StartPlayout() { |
WEBRTC_TRACE(kTraceInfo, kTraceVoice, VoEId(_instanceId, _channelId), |
"Channel::StartPlayout()"); |