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

Unified Diff: content/common/gpu/media/omx_video_decode_accelerator.cc

Issue 7741012: ovda: allow the setting of profile to be optional (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 9 years, 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/media/omx_video_decode_accelerator.cc
===================================================================
--- content/common/gpu/media/omx_video_decode_accelerator.cc (revision 97907)
+++ content/common/gpu/media/omx_video_decode_accelerator.cc (working copy)
@@ -515,7 +515,8 @@
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_,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698