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

Unified Diff: media/filters/audio_renderer_base.cc

Issue 9325044: Remove AudioDecoder from the Filter heirarchy. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: CR responses. Created 8 years, 10 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/filters/audio_renderer_base.h ('k') | media/filters/ffmpeg_audio_decoder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/audio_renderer_base.cc
diff --git a/media/filters/audio_renderer_base.cc b/media/filters/audio_renderer_base.cc
index 445b2d1dd54cde6154f9f58ccbd39d3a43c7b47c..ea1e58b24af802758edd6fb525ff7149dc530f53 100644
--- a/media/filters/audio_renderer_base.cc
+++ b/media/filters/audio_renderer_base.cc
@@ -51,6 +51,10 @@ void AudioRendererBase::Pause(const base::Closure& callback) {
}
}
+void AudioRendererBase::Flush(const base::Closure& callback) {
+ decoder_->Reset(callback);
+}
+
void AudioRendererBase::Stop(const base::Closure& callback) {
OnStop();
{
@@ -84,7 +88,7 @@ void AudioRendererBase::Seek(base::TimeDelta time, const FilterStatusCB& cb) {
algorithm_->FlushBuffers();
}
-void AudioRendererBase::Initialize(AudioDecoder* decoder,
+void AudioRendererBase::Initialize(const scoped_refptr<AudioDecoder>& decoder,
const PipelineStatusCB& init_callback,
const base::Closure& underflow_callback,
const AudioTimeCB& audio_time_cb) {
« no previous file with comments | « media/filters/audio_renderer_base.h ('k') | media/filters/ffmpeg_audio_decoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698