From fdfde88d0bcd0b293c9deb37f49254bdd97e4dac Mon Sep 17 00:00:00 2001 From: mayank parshar Date: Thu, 23 Jan 2014 15:08:31 +0530 Subject: [PATCH] SurfaceFlinger: mFbProducerSlot initailization b/12487813 SurfaceFlinger crash is observed during simulation of Secondary display Note: change 14e8b01a761180250671f3d6494532d8bd04fa8e removed the initialization leading to the crash when simulating secondary display. Restore the initialization to solve the problem. Change-Id: Iae5845fb82735e01de5cc0dc582d13c27e3c614f Signed-off-by: mayank parshar Signed-off-by: Pierre Couillaud --- .../surfaceflinger/DisplayHardware/VirtualDisplaySurface.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/services/surfaceflinger/DisplayHardware/VirtualDisplaySurface.cpp b/services/surfaceflinger/DisplayHardware/VirtualDisplaySurface.cpp index e20390341..d7fef8c1e 100644 --- a/services/surfaceflinger/DisplayHardware/VirtualDisplaySurface.cpp +++ b/services/surfaceflinger/DisplayHardware/VirtualDisplaySurface.cpp @@ -461,6 +461,7 @@ void VirtualDisplaySurface::resetPerFrameState() { mFbFence = Fence::NO_FENCE; mOutputFence = Fence::NO_FENCE; mOutputProducerSlot = -1; + mFbProducerSlot = -1; } status_t VirtualDisplaySurface::refreshOutputBuffer() {