diff options
| -rw-r--r-- | services/camera/libcameraservice/camera2/CaptureSequencer.cpp | 7 | ||||
| -rw-r--r-- | services/camera/libcameraservice/camera2/ZslProcessor.cpp | 8 |
2 files changed, 8 insertions, 7 deletions
diff --git a/services/camera/libcameraservice/camera2/CaptureSequencer.cpp b/services/camera/libcameraservice/camera2/CaptureSequencer.cpp index c9498c2..98aa380 100644 --- a/services/camera/libcameraservice/camera2/CaptureSequencer.cpp +++ b/services/camera/libcameraservice/camera2/CaptureSequencer.cpp @@ -289,13 +289,6 @@ CaptureSequencer::CaptureState CaptureSequencer::manageZslStart( client->registerFrameListener(mCaptureId, this); - res = client->getCameraDevice()->clearStreamingRequest(); - if (res != OK) { - ALOGE("%s: Camera %d: Unable to stop preview for ZSL capture: " - "%s (%d)", - __FUNCTION__, client->getCameraId(), strerror(-res), res); - return DONE; - } // TODO: Actually select the right thing here. res = processor->pushToReprocess(mCaptureId); if (res != OK) { diff --git a/services/camera/libcameraservice/camera2/ZslProcessor.cpp b/services/camera/libcameraservice/camera2/ZslProcessor.cpp index 1bcf97e..7977f9d 100644 --- a/services/camera/libcameraservice/camera2/ZslProcessor.cpp +++ b/services/camera/libcameraservice/camera2/ZslProcessor.cpp @@ -297,6 +297,14 @@ status_t ZslProcessor::pushToReprocess(int32_t requestId) { return INVALID_OPERATION; } + res = client->getCameraDevice()->clearStreamingRequest(); + if (res != OK) { + ALOGE("%s: Camera %d: Unable to stop preview for ZSL capture: " + "%s (%d)", + __FUNCTION__, client->getCameraId(), strerror(-res), res); + return INVALID_OPERATION; + } + // TODO: have push-and-clear be atomic res = client->getCameraDevice()->pushReprocessBuffer(mZslReprocessStreamId, handle, this); if (res != OK) { |
