diff options
author | levin@chromium.org <levin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-15 18:48:54 +0000 |
---|---|---|
committer | levin@chromium.org <levin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-15 18:48:54 +0000 |
commit | bf5604e21324c32393afa9754d37106d432bc8a7 (patch) | |
tree | fefe898402437a56c091a2261dd99aaa1609e333 /media/tools | |
parent | 675960006c65bd69ae927ac22fcd6a04f5f3dd15 (diff) | |
download | chromium_src-bf5604e21324c32393afa9754d37106d432bc8a7.zip chromium_src-bf5604e21324c32393afa9754d37106d432bc8a7.tar.gz chromium_src-bf5604e21324c32393afa9754d37106d432bc8a7.tar.bz2 |
Revert 66125 -- Broke Windows build - Move FilterType into MediaFilterCollection
MediaFilterCollection is the only code that uses FilterType now so
I'm moving the enum into that class and removing all references from
the MediaFilter & derived classes.
BUG=61823
TEST=No new functionality. Existing tests pass.
Review URL: http://codereview.chromium.org/4653005
TBR=acolwell@chromium.org
Review URL: http://codereview.chromium.org/4991003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66139 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/tools')
-rw-r--r-- | media/tools/player_x11/player_x11.cc | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/media/tools/player_x11/player_x11.cc b/media/tools/player_x11/player_x11.cc index ffff1bd..ad307c4 100644 --- a/media/tools/player_x11/player_x11.cc +++ b/media/tools/player_x11/player_x11.cc @@ -99,23 +99,21 @@ bool InitPipeline(MessageLoop* message_loop, // Create our filter factories. scoped_ptr<media::MediaFilterCollection> collection( new media::MediaFilterCollection()); - collection->AddDataSource(new media::FileDataSource()); - collection->AddDemuxer(new media::FFmpegDemuxer()); - collection->AddAudioDecoder(new media::FFmpegAudioDecoder()); + collection->AddFilter(new media::FileDataSource()); + collection->AddFilter(new media::FFmpegDemuxer()); + collection->AddFilter(new media::FFmpegAudioDecoder()); if (CommandLine::ForCurrentProcess()->HasSwitch( switches::kEnableOpenMax)) { - collection->AddVideoDecoder(new media::OmxVideoDecoder(NULL)); + collection->AddFilter(new media::OmxVideoDecoder(NULL)); } else { - collection->AddVideoDecoder(new media::FFmpegVideoDecoder(NULL)); + collection->AddFilter(new media::FFmpegVideoDecoder(NULL)); } - collection->AddVideoRenderer(new Renderer(g_display, - g_window, - paint_message_loop)); + collection->AddFilter(new Renderer(g_display, g_window, paint_message_loop)); if (enable_audio) - collection->AddAudioRenderer(new media::AudioRendererImpl()); + collection->AddFilter(new media::AudioRendererImpl()); else - collection->AddAudioRenderer(new media::NullAudioRenderer()); + collection->AddFilter(new media::NullAudioRenderer()); // Creates the pipeline and start it. *pipeline = new media::PipelineImpl(message_loop); |