summaryrefslogtreecommitdiffstats
path: root/media/video/omx_video_decode_engine.cc
diff options
context:
space:
mode:
authorscherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-11 22:31:24 +0000
committerscherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-11 22:31:24 +0000
commit0b5f7e52bab18455a11ea763ae424f30755dc20f (patch)
treeddcfd55906e694285269a2bf683175d2320cab95 /media/video/omx_video_decode_engine.cc
parent33cdc9b854044864f7494c23a21f78733a961236 (diff)
downloadchromium_src-0b5f7e52bab18455a11ea763ae424f30755dc20f.zip
chromium_src-0b5f7e52bab18455a11ea763ae424f30755dc20f.tar.gz
chromium_src-0b5f7e52bab18455a11ea763ae424f30755dc20f.tar.bz2
Remove FFmpegVideoDecodeEngine's dependency on AVStream (again).
First step of many towards removing DemuxerStream::QueryInterface, AVStreamProvider, and MediaFormat. This time without memory leaks! BUG=28206 TEST=media_unittests git-svn-id: svn://svn.chromium.org/chrome/trunk/src@77875 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'media/video/omx_video_decode_engine.cc')
-rw-r--r--media/video/omx_video_decode_engine.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/media/video/omx_video_decode_engine.cc b/media/video/omx_video_decode_engine.cc
index df3f9cf..a6996d3 100644
--- a/media/video/omx_video_decode_engine.cc
+++ b/media/video/omx_video_decode_engine.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -90,8 +90,8 @@ void OmxVideoDecodeEngine::Initialize(
message_loop_ = message_loop;
event_handler_ = event_handler;
- width_ = config.width;
- height_ = config.height;
+ width_ = config.width();
+ height_ = config.height();
// TODO(wjia): Find the right way to determine the codec type.
OmxConfigurator::MediaFormat input_format, output_format;
@@ -115,8 +115,8 @@ void OmxVideoDecodeEngine::Initialize(
uses_egl_image_ ? VideoFrame::TYPE_GL_TEXTURE
: VideoFrame::TYPE_SYSTEM_MEMORY;
info.stream_info.surface_format = GetSurfaceFormat();
- info.stream_info.surface_width = config.width;
- info.stream_info.surface_height = config.height;
+ info.stream_info.surface_width = config.width();
+ info.stream_info.surface_height = config.height();
event_handler_->OnInitializeComplete(info);
}