summaryrefslogtreecommitdiff
authorJianping Zheng <jianping.zheng@amlogic.com>2014-12-26 02:25:20 (GMT)
committer jianping.zheng <jianping.zheng@amlogic.com>2014-12-26 02:27:48 (GMT)
commit1572ddb5cb5f20459ea607c5c2591833ac6249a2 (patch)
tree1596fed86b8d776647fb323425256b3a71b627d1
parent326f4baa3a39a285fe298ba05807adb6a8cf7d6f (diff)
downloadcamera-1572ddb5cb5f20459ea607c5c2591833ac6249a2.zip
camera-1572ddb5cb5f20459ea607c5c2591833ac6249a2.tar.gz
camera-1572ddb5cb5f20459ea607c5c2591833ac6249a2.tar.bz2
PD#101237, fix the static variable only init once issue
Change-Id: Ic88564aaac98ebc661280106234502f9066aa873
Diffstat
-rwxr-xr-xv3/EmulatedFakeCamera3.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/v3/EmulatedFakeCamera3.cpp b/v3/EmulatedFakeCamera3.cpp
index 62c48e5..d894fcc 100755
--- a/v3/EmulatedFakeCamera3.cpp
+++ b/v3/EmulatedFakeCamera3.cpp
@@ -1673,7 +1673,7 @@ status_t EmulatedFakeCamera3::constructStaticInfo() {
} else {
property_get("ro.camera.orientation.front", property, "90");
}
- static const int32_t orientation = atoi(property);
+ const int32_t orientation = atoi(property);
info.update(ANDROID_SENSOR_ORIENTATION, &orientation, 1);
} else {
static const int32_t orientation = 0;