Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2267106c authored by Eino-Ville Talvala's avatar Eino-Ville Talvala
Browse files

Camera2: Stop preview: Wait until HAL is drained

Once camera returns from stopPreview, all preview activity needs to
have stopped. So wait until that's true.

Bug: 6243944
Change-Id: Ifa6cf171bd69015883e26dafb1e49e5ac098025a
parent 9e4c3db0
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -592,6 +592,7 @@ void Camera2Client::stopPreviewLocked() {
            // TODO: Handle record stop here
        case PREVIEW:
            mDevice->setStreamingRequest(NULL);
            mDevice->waitUntilDrained();
        case WAITING_FOR_PREVIEW_WINDOW:
            mState = STOPPED;
            break;