Commit b55eee23 authored by ashokm@nvidia.com's avatar ashokm@nvidia.com

ovda: allow the setting of profile to be optional

Currently, ovda is expecting profile to sent in initialize().
Change this to be optional.

Test=ovda unit test, gles2 sample plugin

Review URL: http://codereview.chromium.org/7741012

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98565 0039d316-1c4b-4281-b951-d872f2087c98
parent bf3bbdcc
......@@ -515,7 +515,8 @@ void OmxVideoDecodeAccelerator::OnReachedIdleInInitializing() {
DCHECK_EQ(client_state_, OMX_StateLoaded);
client_state_ = OMX_StateIdle;
// Query the resources with the component.
if (component_name_is_nvidia_h264ext_) {
if (component_name_is_nvidia_h264ext_ &&
(profile_ != OMX_VIDEO_AVCProfileMax)) {
OMX_INDEXTYPE extension_index;
OMX_ERRORTYPE result = OMX_GetExtensionIndex(
component_handle_,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment