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

Commit e78d5c7b authored by Eino-Ville Talvala's avatar Eino-Ville Talvala Committed by Android (Google) Code Review
Browse files

Merge "Camera2: Stop preview: Wait until HAL is drained"

parents 789e3253 2267106c
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;