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

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

Issue 25544003: Fix code style and gyp files in cast to build cast_unittest (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixed gyp files 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
« no previous file with comments | « media/cast/audio_receiver/audio_decoder.h ('k') | media/cast/audio_receiver/audio_decoder_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « media/cast/audio_receiver/audio_decoder.h ('k') | media/cast/audio_receiver/audio_decoder_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698