Index: media/cast/audio_receiver/audio_decoder.cc |
diff --git a/media/cast/audio_receiver/audio_decoder.cc b/media/cast/audio_receiver/audio_decoder.cc |
index 7adeb2d68bbf673bc0a8230cad7e3853e69894c3..b868b1177b2ced63d6f2030131054173ef0fdb9a 100644 |
--- a/media/cast/audio_receiver/audio_decoder.cc |
+++ b/media/cast/audio_receiver/audio_decoder.cc |
@@ -13,9 +13,9 @@ namespace cast { |
AudioDecoder::AudioDecoder(scoped_refptr<CastThread> cast_thread, |
const AudioReceiverConfig& audio_config) |
- : cast_thread_(cast_thread), |
- have_received_packets_(false) { |
- audio_decoder_ = webrtc::AudioCodingModule::Create(0); |
+ : audio_decoder_(webrtc::AudioCodingModule::Create(0)), |
+ have_received_packets_(false), |
+ cast_thread_(cast_thread) { |
audio_decoder_->InitializeReceiver(); |
webrtc::CodecInst receive_codec; |
@@ -49,7 +49,6 @@ AudioDecoder::AudioDecoder(scoped_refptr<CastThread> cast_thread, |
} |
AudioDecoder::~AudioDecoder() { |
- webrtc::AudioCodingModule::Destroy(audio_decoder_); |
} |
bool AudioDecoder::GetRawAudioFrame(int number_of_10ms_blocks, |
@@ -97,4 +96,4 @@ void AudioDecoder::IncomingParsedRtpPacket(const uint8* payload_data, |
} |
} // namespace cast |
-} // namespace media |
+} // namespace media |