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

Commit a1a587f1 authored by Xin Li's avatar Xin Li Committed by Android (Google) Code Review
Browse files

Merge "DO NOT MERGE - Merge pi-platform-release (PPRL.190205.001) into...

Merge "DO NOT MERGE - Merge pi-platform-release (PPRL.190205.001) into stage-aosp-master" into stage-aosp-master
parents 48c789eb 48849e0e
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -547,9 +547,11 @@ CaptureSequencer::CaptureState CaptureSequencer::manageStandardCapture(
        return DONE;
    }

    if (l.mParameters.isDeviceZslSupported) {
    if ((l.mParameters.isDeviceZslSupported) && (l.mParameters.state != Parameters::RECORD) &&
            (l.mParameters.state != Parameters::VIDEO_SNAPSHOT)) {
        // If device ZSL is supported, drop all pending preview buffers to reduce the chance of
        // rendering preview frames newer than the still frame.
        // Additionally, preview must not get interrupted during video recording.
        client->getCameraDevice()->dropStreamBuffers(true, client->getPreviewStreamId());
    }