From 347121bfd88f817fe27525e52fb371ba5e9f0ff6 Mon Sep 17 00:00:00 2001 From: Sushil Chauhan Date: Tue, 24 Apr 2012 10:56:00 -0700 Subject: [PATCH] Reset to initial state when Overlay startChannel() fails. When Overlay startChannel fails due to some reason and overlay channel is not yet up, state needs to be reset to initial value. Change-Id: Iabc765f350bf999d8362f86a43b900ff7aed1bb3 CRs-Fixed: 354403 --- liboverlay/overlayLib.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/liboverlay/overlayLib.cpp b/liboverlay/overlayLib.cpp index ba98e23..cf9f157 100755 --- a/liboverlay/overlayLib.cpp +++ b/liboverlay/overlayLib.cpp @@ -438,6 +438,7 @@ bool Overlay::startChannel(const overlay_buffer_info& info, int fbnum, format3D, zorder, flags); if (!mChannelUP) { LOGE("startChannel for fb%d failed", fbnum); + mState = -1; return mChannelUP; } bool secure = flags & SECURE_OVERLAY_SESSION;