summaryrefslogtreecommitdiffstats
path: root/content
diff options
context:
space:
mode:
authorashokm@nvidia.com <ashokm@nvidia.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-03 17:45:12 +0000
committerashokm@nvidia.com <ashokm@nvidia.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-03 17:45:12 +0000
commitb5f05b3dc49b0e72dcac26a70f55a71c22580457 (patch)
tree8c64d53cfb1ee0e6c57f8cea927bf9efe95d45c6 /content
parent476d0f61b6d5f226eb4950dce6c750e4a061cb18 (diff)
downloadchromium_src-b5f05b3dc49b0e72dcac26a70f55a71c22580457.zip
chromium_src-b5f05b3dc49b0e72dcac26a70f55a71c22580457.tar.gz
chromium_src-b5f05b3dc49b0e72dcac26a70f55a71c22580457.tar.bz2
ovda: add the check for omx_indexconfigcommonscale event.
If the SAR of the video is different than the actual resolution, omx video decoder sends a PortSettingsChanged event. Review URL: http://codereview.chromium.org/7527002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95265 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content')
-rw-r--r--content/common/gpu/media/omx_video_decode_accelerator.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/content/common/gpu/media/omx_video_decode_accelerator.cc b/content/common/gpu/media/omx_video_decode_accelerator.cc
index b3a637c..fbfedef 100644
--- a/content/common/gpu/media/omx_video_decode_accelerator.cc
+++ b/content/common/gpu/media/omx_video_decode_accelerator.cc
@@ -916,6 +916,9 @@ void OmxVideoDecodeAccelerator::EventHandlerCompleteTask(OMX_EVENTTYPE event,
} else if (data1 == output_port_ &&
data2 == OMX_IndexConfigCommonOutputCrop) {
// TODO(vjain): Handle video crop rect.
+ } else if (data1 == output_port_ &&
+ data2 == OMX_IndexConfigCommonScale) {
+ // TODO(ashokm@nvidia.com): Handle video SAR change.
} else {
RETURN_ON_FAILURE(false,
"Unexpected EventPortSettingsChanged: "