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

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

Issue 7200033: Fix crashes when loading gles2.cc on browser startup, and during playback. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 6 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
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 3ae43f73d4052ccd141f3425f51fd44236a15618..2dfc1da7dc9bfc9c5deceea77833b8a33994adaf 100644
--- a/content/common/gpu/media/omx_video_decode_accelerator.cc
+++ b/content/common/gpu/media/omx_video_decode_accelerator.cc
@@ -489,10 +489,9 @@ void OmxVideoDecodeAccelerator::FlushIOPorts() {
// Flush input port first.
DCHECK(!on_flush_event_func_);
on_flush_event_func_ = &OmxVideoDecodeAccelerator::InputPortFlushDone;
- OMX_ERRORTYPE result;
- result = OMX_SendCommand(component_handle_,
- OMX_CommandFlush,
- input_port_, 0);
+ OMX_ERRORTYPE result = OMX_SendCommand(component_handle_,
+ OMX_CommandFlush,
+ input_port_, 0);
if (result != OMX_ErrorNone) {
LOG(ERROR) << "OMX_SendCommand(OMX_CommandFlush) failed";
StopOnError();

Powered by Google App Engine
This is Rietveld 408576698