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

Unified Diff: media/filters/audio_decoder_selector.cc

Issue 139513007: Revert of Add Stop() to AudioDecoder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 11 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/base/mock_filters.h ('k') | media/filters/audio_decoder_selector_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/audio_decoder_selector.cc
diff --git a/media/filters/audio_decoder_selector.cc b/media/filters/audio_decoder_selector.cc
index f0de25d220a61829b3c44324fdec42f8a01186cf..4f7889b2619f3793a85765522d7ec2a1d6f5d34a 100644
--- a/media/filters/audio_decoder_selector.cc
+++ b/media/filters/audio_decoder_selector.cc
@@ -90,10 +90,10 @@
weak_ptr_factory_.InvalidateWeakPtrs();
if (audio_decoder_) {
- // |decrypted_stream_| is either NULL or already initialized. We don't
- // need to Reset() |decrypted_stream_| in either case.
- audio_decoder_->Stop(base::Bind(&AudioDecoderSelector::ReturnNullDecoder,
- weak_ptr_factory_.GetWeakPtr()));
+ // AudioDecoder doesn't provide a Stop() method. Also, |decrypted_stream_|
+ // is either NULL or already initialized. We don't need to Reset()
+ // |decrypted_stream_| in either case.
+ ReturnNullDecoder();
return;
}
« no previous file with comments | « media/base/mock_filters.h ('k') | media/filters/audio_decoder_selector_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698