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

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

Issue 10959021: Fix the test for failed eglQuerySurfacePointerANGLE in DXVA. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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/dxva_video_decode_accelerator.cc
diff --git a/content/common/gpu/media/dxva_video_decode_accelerator.cc b/content/common/gpu/media/dxva_video_decode_accelerator.cc
index 11424eeee21912d9ca68759a249067c62fa91907..e3dd19b4850caf4fdd88e7754267b30fad4f4be6 100644
--- a/content/common/gpu/media/dxva_video_decode_accelerator.cc
+++ b/content/common/gpu/media/dxva_video_decode_accelerator.cc
@@ -295,7 +295,7 @@ linked_ptr<DXVAVideoDecodeAccelerator::DXVAPictureBuffer>
EGL_D3D_TEXTURE_2D_SHARE_HANDLE_ANGLE,
&share_handle);
- RETURN_ON_FAILURE(share_handle || ret != EGL_TRUE,
+ RETURN_ON_FAILURE(share_handle && ret == EGL_TRUE,
"Failed to query ANGLE surface pointer",
linked_ptr<DXVAPictureBuffer>(NULL));
« 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