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

Unified Diff: media/filters/ffmpeg_audio_decoder.h

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.cc ('k') | media/filters/ffmpeg_audio_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/ffmpeg_audio_decoder.h
diff --git a/media/filters/ffmpeg_audio_decoder.h b/media/filters/ffmpeg_audio_decoder.h
index 0cfd456bdbac74faefce34d2ab8ebde6c79bf610..edf93345bdec109c5f261c7e7b3ca2b235cd7004 100644
--- a/media/filters/ffmpeg_audio_decoder.h
+++ b/media/filters/ffmpeg_audio_decoder.h
@@ -8,7 +8,7 @@
#include <list>
#include "base/message_loop.h"
-#include "media/base/filters.h"
+#include "media/base/audio_decoder.h"
struct AVCodecContext;
@@ -21,24 +21,22 @@ class MEDIA_EXPORT FFmpegAudioDecoder : public AudioDecoder {
explicit FFmpegAudioDecoder(MessageLoop* message_loop);
virtual ~FFmpegAudioDecoder();
- // Filter implementation.
- virtual void Flush(const base::Closure& callback) OVERRIDE;
-
// AudioDecoder implementation.
- virtual void Initialize(DemuxerStream* stream,
+ virtual void Initialize(const scoped_refptr<DemuxerStream>& stream,
const PipelineStatusCB& callback,
const StatisticsCallback& stats_callback) OVERRIDE;
virtual void Read(const ReadCB& callback) OVERRIDE;
virtual int bits_per_channel() OVERRIDE;
virtual ChannelLayout channel_layout() OVERRIDE;
virtual int samples_per_second() OVERRIDE;
+ virtual void Reset(const base::Closure& closure) OVERRIDE;
private:
// Methods running on decoder thread.
void DoInitialize(const scoped_refptr<DemuxerStream>& stream,
const PipelineStatusCB& callback,
const StatisticsCallback& stats_callback);
- void DoFlush(const base::Closure& callback);
+ void DoReset(const base::Closure& closure);
void DoRead(const ReadCB& callback);
void DoDecodeBuffer(const scoped_refptr<Buffer>& input);
« no previous file with comments | « media/filters/audio_renderer_base.cc ('k') | media/filters/ffmpeg_audio_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698