summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Mathias Agopian <mathias@google.com> 2011-01-28 18:23:24 -0800
committer Mathias Agopian <mathias@google.com> 2011-01-28 18:23:24 -0800
commit1723b049c60a298e9016f40bbbaa13ca8fe69b65 (patch)
treed131eec0d780382c361a8164e214b4466e567a79
parent10e4148b62c9bfed945c1bcea9dd5eea2a17b0d0 (diff)
fix [3389263] OMX.Nvidia.h264.decode fails to shutdown
We were still destroying an ANativeWindow's buffer pretty soon after it was removed from the window manager. This time we really wait for the ISurace to go away. Change-Id: I329273fedaeef76ee92836f6180c2c3808389330
-rw-r--r--services/surfaceflinger/Layer.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/services/surfaceflinger/Layer.cpp b/services/surfaceflinger/Layer.cpp
index 37307391fd9f..f64fd7b59bbe 100644
--- a/services/surfaceflinger/Layer.cpp
+++ b/services/surfaceflinger/Layer.cpp
@@ -150,8 +150,7 @@ status_t Layer::ditch()
// the layer is not on screen anymore. free as much resources as possible
mFreezeLock.clear();
- EGLDisplay dpy(mFlinger->graphicPlane(0).getEGLDisplay());
- mBufferManager.destroy(dpy);
+ // Free our own reference to ISurface
mSurface.clear();
Mutex::Autolock _l(mLock);