QCamera2: HAL3: Remove unhelpful error message
Bug: 27074407
Change-Id: Ifca42b7b25b948c8c19623ec1e1f8add1bc1f7f9
diff --git a/msm8998/QCamera2/HAL3/QCamera3Channel.cpp b/msm8998/QCamera2/HAL3/QCamera3Channel.cpp
index c81a8e6..1198ecf 100644
--- a/msm8998/QCamera2/HAL3/QCamera3Channel.cpp
+++ b/msm8998/QCamera2/HAL3/QCamera3Channel.cpp
@@ -3260,18 +3260,12 @@
if (obj->mStreams[0]->getMyHandle() ==
src_frame->bufs[0]->stream_id) {
snapshotIdx = (int32_t)src_frame->bufs[0]->buf_idx;
- } else {
- LOGE("Snapshot stream id %d and source frame %d don't match!",
- obj->mStreams[0]->getMyHandle(),
- src_frame->bufs[0]->stream_id);
+ if (0 <= snapshotIdx) {
+ Mutex::Autolock lock(obj->mFreeBuffersLock);
+ obj->mFreeBufferList.push_back((uint32_t)snapshotIdx);
+ }
}
}
- if (0 <= snapshotIdx) {
- Mutex::Autolock lock(obj->mFreeBuffersLock);
- obj->mFreeBufferList.push_back((uint32_t)snapshotIdx);
- } else {
- LOGE("Snapshot buffer not found!");
- }
LOGI("Issue Jpeg Callback frameNumber = %d status = %d",
resultFrameNumber, resultStatus);