summaryrefslogtreecommitdiff
path: root/camera/common/1.0/default/HandleImporter.cpp
diff options
context:
space:
mode:
authorYin-Chia Yeh <yinchiayeh@google.com>2020-01-25 18:15:00 -0800
committerYin-Chia Yeh <yinchiayeh@google.com>2020-02-03 10:30:05 -0800
commit97978fbe32a20431c7899d15eadaacd9c09490da (patch)
tree97259ccc5a32d554e0357679adf1bf0fb6cd1c56 /camera/common/1.0/default/HandleImporter.cpp
parent9ab6b3eb3e975375521520f9e25d4c41bc423332 (diff)
Camera: fix offline processing VTS/CTS
Test: camera VTS test + add manual delay to webcam HAL output thread so there will be some requests left for offline processing camera CTS OfflineSessionTest Bug: 135142453 Change-Id: If5718350707ef051f96b96da75f934089b10467d
Diffstat (limited to 'camera/common/1.0/default/HandleImporter.cpp')
-rw-r--r--camera/common/1.0/default/HandleImporter.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/camera/common/1.0/default/HandleImporter.cpp b/camera/common/1.0/default/HandleImporter.cpp
index ac32c954c4..7792b31880 100644
--- a/camera/common/1.0/default/HandleImporter.cpp
+++ b/camera/common/1.0/default/HandleImporter.cpp
@@ -182,9 +182,8 @@ void HandleImporter::freeBuffer(buffer_handle_t handle) {
}
Mutex::Autolock lock(mLock);
- if (mMapperV4 == nullptr && mMapperV3 == nullptr && mMapperV2 == nullptr) {
- ALOGE("%s: mMapperV4, mMapperV3 and mMapperV2 are all null!", __FUNCTION__);
- return;
+ if (!mInitialized) {
+ initializeLocked();
}
if (mMapperV4 != nullptr) {