diff options
author | scherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-28 01:47:34 +0000 |
---|---|---|
committer | scherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-06-28 01:47:34 +0000 |
commit | ed29e4ddb6c19ac7ce9141967c6aad0e55ecbac2 (patch) | |
tree | 3c09c55c47454db91a6f57717ff24a722eb124fe /media/tools/player_x11 | |
parent | afaeea9dd75d89ee5e4866af29648d94d2e553ef (diff) | |
download | chromium_src-ed29e4ddb6c19ac7ce9141967c6aad0e55ecbac2.zip chromium_src-ed29e4ddb6c19ac7ce9141967c6aad0e55ecbac2.tar.gz chromium_src-ed29e4ddb6c19ac7ce9141967c6aad0e55ecbac2.tar.bz2 |
Removing defunct OpenMAX code (round 2).
All of this code hasn't been used in over a year and has been replaced by VideoDecodeAccelerator and it's corresponding OpenMAX implementation OmxVideoDecodeAccelerator.
BUG=none
TEST=the world still compiles
Review URL: http://codereview.chromium.org/7066071
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90697 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/tools/player_x11')
-rw-r--r-- | media/tools/player_x11/player_x11.cc | 23 |
1 files changed, 3 insertions, 20 deletions
diff --git a/media/tools/player_x11/player_x11.cc b/media/tools/player_x11/player_x11.cc index 42b30438..590306b 100644 --- a/media/tools/player_x11/player_x11.cc +++ b/media/tools/player_x11/player_x11.cc @@ -26,7 +26,6 @@ #include "media/filters/ffmpeg_video_decoder.h" #include "media/filters/file_data_source_factory.h" #include "media/filters/null_audio_renderer.h" -#include "media/filters/omx_video_decoder.h" // TODO(jiesun): implement different video decode contexts according to // these flags. e.g. @@ -95,14 +94,6 @@ bool InitPipeline(MessageLoop* message_loop, scoped_refptr<media::PipelineImpl>* pipeline, MessageLoop* paint_message_loop, media::MessageLoopFactory* message_loop_factory) { - // Initialize OpenMAX. - if (CommandLine::ForCurrentProcess()->HasSwitch( - switches::kEnableOpenMax) && - !media::InitializeOpenMaxLibrary(FilePath())) { - std::cout << "Unable to initialize OpenMAX library."<< std::endl; - return false; - } - // Load media libraries. if (!media::InitializeMediaLibrary(FilePath())) { std::cout << "Unable to initialize the media library." << std::endl; @@ -118,16 +109,9 @@ bool InitPipeline(MessageLoop* message_loop, new media::FileDataSourceFactory(), message_loop))); collection->AddAudioDecoder(new media::FFmpegAudioDecoder( message_loop_factory->GetMessageLoop("AudioDecoderThread"))); - if (CommandLine::ForCurrentProcess()->HasSwitch( - switches::kEnableOpenMax)) { - collection->AddVideoDecoder(new media::OmxVideoDecoder( - message_loop_factory->GetMessageLoop("VideoDecoderThread"), - NULL)); - } else { - collection->AddVideoDecoder(new media::FFmpegVideoDecoder( - message_loop_factory->GetMessageLoop("VideoDecoderThread"), - NULL)); - } + collection->AddVideoDecoder(new media::FFmpegVideoDecoder( + message_loop_factory->GetMessageLoop("VideoDecoderThread"), + NULL)); collection->AddVideoRenderer(new Renderer(g_display, g_window, paint_message_loop)); @@ -234,7 +218,6 @@ int main(int argc, char** argv) { std::cout << "Usage: " << argv[0] << " --file=FILE" << std::endl << std::endl << "Optional arguments:" << std::endl - << " [--enable-openmax]" << " [--audio]" << " [--alsa-device=DEVICE]" << std::endl << " Press [ESC] to stop" << std::endl |