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

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

Issue 10832263: OMX: Don't leave FreeOutputBuffers if MakeCurrent fails. (Closed) Base URL: https://git.chromium.org/git/chromium/src@git-svn
Patch Set: Don't call MakeCurrent at all in the destroy path. Created 8 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
diff --git a/content/common/gpu/media/omx_video_decode_accelerator.cc b/content/common/gpu/media/omx_video_decode_accelerator.cc
index 956742d7eca9ae5154efd2f92414462acbb9f0f4..dc5592a2b3d0d4c8c7e170de40b84a2261c4b24e 100644
--- a/content/common/gpu/media/omx_video_decode_accelerator.cc
+++ b/content/common/gpu/media/omx_video_decode_accelerator.cc
@@ -713,9 +713,6 @@ void OmxVideoDecodeAccelerator::FreeOutputBuffers() {
// Calls to OMX to free buffers.
OMX_ERRORTYPE result;
- if (!make_context_current_.Run())
- return;
-
for (OutputPictureById::iterator it = pictures_.begin();
it != pictures_.end(); ++it) {
OMX_BUFFERHEADERTYPE* omx_buffer = it->second.omx_buffer_header;
« 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