diff --git a/libhwcomposer/hwc.cpp b/libhwcomposer/hwc.cpp index 4dd4662..462a63e 100644 --- a/libhwcomposer/hwc.cpp +++ b/libhwcomposer/hwc.cpp @@ -110,6 +110,7 @@ static int hwc_prepare(hwc_composer_device_t *dev, hwc_layer_list_t* list) } else { // Else set this flag to false, otherwise video cases // fail in non-overlay targets. ctx->overlayInUse = false; + ctx->mOverlay->setState(ovutils::OV_CLOSED); } } @@ -197,8 +198,6 @@ static int hwc_set(hwc_composer_device_t *dev, ctx->qbuf->unlockAll(); } - if(!ctx->overlayInUse) - ctx->mOverlay->setState(ovutils::OV_CLOSED); ctx->qbuf->unlockAllPrevious(); return ret;