Index: media/filters/ffmpeg_demuxer.cc |
diff --git a/media/filters/ffmpeg_demuxer.cc b/media/filters/ffmpeg_demuxer.cc |
index 5c2a913eb1ce6ec1f98784a9f15c837d780f71f8..7a74d138967a6008726903170cbae360ab8246f5 100644 |
--- a/media/filters/ffmpeg_demuxer.cc |
+++ b/media/filters/ffmpeg_demuxer.cc |
@@ -426,8 +426,8 @@ void FFmpegDemuxer::InitializeTask(DataSource* data_source, |
// Initialize the bitstream if OpenMAX is enabled. |
// TODO(hclam): Should be enabled by the decoder. |
- if (CommandLine::ForCurrentProcess()->HasSwitch( |
- switches::kEnableOpenMax)) { |
+ CommandLine* cmd = CommandLine::ForCurrentProcess(); |
+ if (cmd->HasSwitch(switches::kEnableAcceleratedDecoding)) { |
// TODO(ajwong): Unittest this branch of the if statement. |
// TODO(hclam): In addition to codec we should also check the container. |
const char* filter_name = NULL; |