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

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

Issue 24586003: Be able to build cast_unittest and related targets in Chrome tree (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix warnings 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: 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 266c04ea20d566bb804a9de52b3d9c53aea47d6d..893ccc0e3e5cd85bd76ba7dd057d9eefa4bd1d56 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,
@@ -96,4 +95,4 @@ void AudioDecoder::IncomingParsedRtpPacket(const uint8* payload_data,
}
} // namespace cast
-} // namespace media
+} // namespace media

Powered by Google App Engine
This is Rietveld 408576698