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

Unified Diff: remoting/codec/audio_decoder_opus.cc

Issue 1236663002: Allow shaped-desktop hosts to send shape only when it changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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: remoting/codec/audio_decoder_opus.cc
diff --git a/remoting/codec/audio_decoder_opus.cc b/remoting/codec/audio_decoder_opus.cc
index 27f01fd91ce3082b0c2964093793eab997414b32..8fc2f11c4af7f461a430712df8ba1341176daf55 100644
--- a/remoting/codec/audio_decoder_opus.cc
+++ b/remoting/codec/audio_decoder_opus.cc
@@ -26,9 +26,7 @@ const AudioPacket::SamplingRate kSamplingRate =
} // namespace
AudioDecoderOpus::AudioDecoderOpus()
- : sampling_rate_(0),
- channels_(0),
- decoder_(NULL) {
+ : sampling_rate_(0), channels_(0), decoder_(nullptr) {
}
AudioDecoderOpus::~AudioDecoderOpus() {
@@ -47,7 +45,7 @@ void AudioDecoderOpus::InitDecoder() {
void AudioDecoderOpus::DestroyDecoder() {
if (decoder_) {
opus_decoder_destroy(decoder_);
- decoder_ = NULL;
+ decoder_ = nullptr;
}
}
@@ -72,7 +70,7 @@ bool AudioDecoderOpus::ResetForPacket(AudioPacket* packet) {
InitDecoder();
}
- return decoder_ != NULL;
+ return decoder_;
}

Powered by Google App Engine
This is Rietveld 408576698