Loading services/camera/libcameraservice/api1/client2/CaptureSequencer.cpp +3 −1 Original line number Original line Diff line number Diff line Loading @@ -551,9 +551,11 @@ CaptureSequencer::CaptureState CaptureSequencer::manageStandardCapture( return DONE; 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 // If device ZSL is supported, drop all pending preview buffers to reduce the chance of // rendering preview frames newer than the still frame. // rendering preview frames newer than the still frame. // Additionally, preview must not get interrupted during video recording. client->getCameraDevice()->dropStreamBuffers(true, client->getPreviewStreamId()); client->getCameraDevice()->dropStreamBuffers(true, client->getPreviewStreamId()); } } Loading Loading
services/camera/libcameraservice/api1/client2/CaptureSequencer.cpp +3 −1 Original line number Original line Diff line number Diff line Loading @@ -551,9 +551,11 @@ CaptureSequencer::CaptureState CaptureSequencer::manageStandardCapture( return DONE; 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 // If device ZSL is supported, drop all pending preview buffers to reduce the chance of // rendering preview frames newer than the still frame. // rendering preview frames newer than the still frame. // Additionally, preview must not get interrupted during video recording. client->getCameraDevice()->dropStreamBuffers(true, client->getPreviewStreamId()); client->getCameraDevice()->dropStreamBuffers(true, client->getPreviewStreamId()); } } Loading