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

Unified Diff: media/filters/audio_decoder_selector.cc

Issue 126793002: Add Stop() to AudioDecoder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove extraneous #include 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 4f7889b2619f3793a85765522d7ec2a1d6f5d34a..f0de25d220a61829b3c44324fdec42f8a01186cf 100644
--- a/media/filters/audio_decoder_selector.cc
+++ b/media/filters/audio_decoder_selector.cc
@@ -90,10 +90,10 @@ void AudioDecoderSelector::Abort() {
weak_ptr_factory_.InvalidateWeakPtrs();
if (audio_decoder_) {
- // 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();
+ // |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()));
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