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

Unified Diff: media/tools/player_x11/player_x11.cc

Issue 7066071: Removing defunct OpenMAX code. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src
Patch Set: removed tab Created 9 years, 7 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/tools/omx_test/omx_test.cc ('k') | media/video/omx_video_decode_engine.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/tools/player_x11/player_x11.cc
diff --git a/media/tools/player_x11/player_x11.cc b/media/tools/player_x11/player_x11.cc
index 42b30438eabf498cfe20c203e06bf3cc5e7261ee..590306b71f8a2cc1c28f9b031fa080678d60a61a 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
« no previous file with comments | « media/tools/omx_test/omx_test.cc ('k') | media/video/omx_video_decode_engine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698