diff options
author | Yin-Chia Yeh <yinchiayeh@google.com> | 2015-03-24 16:51:41 -0700 |
---|---|---|
committer | Yin-Chia Yeh <yinchiayeh@google.com> | 2015-03-24 16:51:41 -0700 |
commit | 54298b338cf9f782f2ac681a15e6cbbb99649350 (patch) | |
tree | ea9027bd6a83df8488aa7d16d237c51f3c93a269 /include | |
parent | 676b21b30edbd74d7b9aae247961a1ffde1b8993 (diff) | |
download | frameworks_av-54298b338cf9f782f2ac681a15e6cbbb99649350.zip frameworks_av-54298b338cf9f782f2ac681a15e6cbbb99649350.tar.gz frameworks_av-54298b338cf9f782f2ac681a15e6cbbb99649350.tar.bz2 |
Camera: fix metadata assertion
Bug: 19897963
Change-Id: I6b383c4750f31691a1c02e927bbeb0c1998a9eff
Diffstat (limited to 'include')
-rw-r--r-- | include/camera/CameraMetadata.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/camera/CameraMetadata.h b/include/camera/CameraMetadata.h index 1254d3c..953d711 100644 --- a/include/camera/CameraMetadata.h +++ b/include/camera/CameraMetadata.h @@ -56,7 +56,7 @@ class CameraMetadata { * thread-safety, it simply prevents the camera_metadata_t pointer returned * here from being accidentally invalidated by CameraMetadata operations. */ - const camera_metadata_t* getAndLock(); + const camera_metadata_t* getAndLock() const; /** * Unlock the CameraMetadata for use again. After this unlock, the pointer @@ -208,7 +208,7 @@ class CameraMetadata { private: camera_metadata_t *mBuffer; - bool mLocked; + mutable bool mLocked; /** * Check if tag has a given type |