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

Unified Diff: media/base/filter_collection.h

Issue 11148011: Move audio decoder initialization to AudioRendererImpl. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: nits Created 8 years, 2 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/audio_renderer.h ('k') | media/base/filter_collection.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/filter_collection.h
diff --git a/media/base/filter_collection.h b/media/base/filter_collection.h
index 08354a7f8a5cc8dc71f810651a33a060032f4948..e9f2be55891d891e932f39d535267bc35f16551f 100644
--- a/media/base/filter_collection.h
+++ b/media/base/filter_collection.h
@@ -25,6 +25,7 @@ class VideoRenderer;
// http://crbug.com/110800
class MEDIA_EXPORT FilterCollection {
public:
+ typedef std::list<scoped_refptr<AudioDecoder> > AudioDecoderList;
typedef std::list<scoped_refptr<VideoDecoder> > VideoDecoderList;
FilterCollection();
@@ -46,15 +47,15 @@ class MEDIA_EXPORT FilterCollection {
// If the required filter cannot be found, NULL is returned.
// If a filter is returned it is removed from the collection.
// Filters are selected in FIFO order.
- void SelectAudioDecoder(scoped_refptr<AudioDecoder>* out);
void SelectAudioRenderer(scoped_refptr<AudioRenderer>* out);
void SelectVideoRenderer(scoped_refptr<VideoRenderer>* out);
+ AudioDecoderList* GetAudioDecoders();
VideoDecoderList* GetVideoDecoders();
private:
scoped_refptr<Demuxer> demuxer_;
- std::list<scoped_refptr<AudioDecoder> > audio_decoders_;
+ AudioDecoderList audio_decoders_;
VideoDecoderList video_decoders_;
std::list<scoped_refptr<AudioRenderer> > audio_renderers_;
std::list<scoped_refptr<VideoRenderer> > video_renderers_;
« no previous file with comments | « media/base/audio_renderer.h ('k') | media/base/filter_collection.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698