Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(409)

Unified Diff: trunk/src/media/cast/audio_receiver/audio_decoder.cc

Issue 25546003: Revert 226264 "Be able to build cast_unittest and related target..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: trunk/src/media/cast/audio_receiver/audio_decoder.cc
===================================================================
--- trunk/src/media/cast/audio_receiver/audio_decoder.cc (revision 226266)
+++ trunk/src/media/cast/audio_receiver/audio_decoder.cc (working copy)
@@ -13,9 +13,9 @@
AudioDecoder::AudioDecoder(scoped_refptr<CastThread> cast_thread,
const AudioReceiverConfig& audio_config)
- : audio_decoder_(webrtc::AudioCodingModule::Create(0)),
- have_received_packets_(false),
- cast_thread_(cast_thread) {
+ : cast_thread_(cast_thread),
+ have_received_packets_(false) {
+ audio_decoder_ = webrtc::AudioCodingModule::Create(0);
audio_decoder_->InitializeReceiver();
webrtc::CodecInst receive_codec;
@@ -49,6 +49,7 @@
}
AudioDecoder::~AudioDecoder() {
+ webrtc::AudioCodingModule::Destroy(audio_decoder_);
}
bool AudioDecoder::GetRawAudioFrame(int number_of_10ms_blocks,
@@ -96,4 +97,4 @@
}
} // namespace cast
-} // namespace media
+} // namespace media
« no previous file with comments | « trunk/src/media/cast/audio_receiver/audio_decoder.h ('k') | trunk/src/media/cast/audio_receiver/audio_decoder_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698