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

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

Issue 506683002: Remove implicit conversions from scoped_refptr to T* in media/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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/receiver/audio_decoder.cc
diff --git a/media/cast/receiver/audio_decoder.cc b/media/cast/receiver/audio_decoder.cc
index dac0a5e9a1181815a197dacfa85b041fb7f984d0..aeed137d1474cf52f3d2a628f947f04463de35c6 100644
--- a/media/cast/receiver/audio_decoder.cc
+++ b/media/cast/receiver/audio_decoder.cc
@@ -220,7 +220,7 @@ AudioDecoder::AudioDecoder(
AudioDecoder::~AudioDecoder() {}
CastInitializationStatus AudioDecoder::InitializationResult() const {
- if (impl_)
+ if (impl_.get())
return impl_->InitializationResult();
return STATUS_UNSUPPORTED_AUDIO_CODEC;
}
@@ -230,7 +230,8 @@ void AudioDecoder::DecodeFrame(
const DecodeFrameCallback& callback) {
DCHECK(encoded_frame.get());
DCHECK(!callback.is_null());
- if (!impl_ || impl_->InitializationResult() != STATUS_AUDIO_INITIALIZED) {
+ if (!impl_.get() ||
+ impl_->InitializationResult() != STATUS_AUDIO_INITIALIZED) {
callback.Run(make_scoped_ptr<AudioBus>(NULL), false);
return;
}

Powered by Google App Engine
This is Rietveld 408576698