summaryrefslogtreecommitdiffstats
path: root/services/camera/libcameraservice/camera2/JpegProcessor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'services/camera/libcameraservice/camera2/JpegProcessor.cpp')
-rw-r--r--services/camera/libcameraservice/camera2/JpegProcessor.cpp18
1 files changed, 0 insertions, 18 deletions
diff --git a/services/camera/libcameraservice/camera2/JpegProcessor.cpp b/services/camera/libcameraservice/camera2/JpegProcessor.cpp
index a353679..ffc072b 100644
--- a/services/camera/libcameraservice/camera2/JpegProcessor.cpp
+++ b/services/camera/libcameraservice/camera2/JpegProcessor.cpp
@@ -209,24 +209,6 @@ status_t JpegProcessor::processNewCapture(sp<Camera2Client> &client) {
ALOGV("%s: Camera %d: Still capture available", __FUNCTION__,
client->getCameraId());
- // TODO: Signal errors here upstream
- {
- SharedParameters::Lock l(client->getParameters());
-
- switch (l.mParameters.state) {
- case Parameters::STILL_CAPTURE:
- case Parameters::VIDEO_SNAPSHOT:
- break;
- default:
- ALOGE("%s: Camera %d: Still image produced unexpectedly "
- "in state %s!",
- __FUNCTION__, client->getCameraId(),
- Parameters::getStateName(l.mParameters.state));
- mCaptureConsumer->unlockBuffer(imgBuffer);
- return BAD_VALUE;
- }
- }
-
if (imgBuffer.format != HAL_PIXEL_FORMAT_BLOB) {
ALOGE("%s: Camera %d: Unexpected format for still image: "
"%x, expected %x", __FUNCTION__, client->getCameraId(),