summaryrefslogtreecommitdiffstats
path: root/services/camera
diff options
context:
space:
mode:
authorJames Dong <jdong@google.com>2012-09-05 16:46:36 -0700
committerJames Dong <jdong@google.com>2012-09-05 16:48:18 -0700
commita289bf696e4b49e0a726fd07914f9dc178653efc (patch)
tree1cb473dcb22442cee15d0f7ab3f66b94043a72da /services/camera
parent53a2d13945f9df97f608b669dbd27ce6a27b9de6 (diff)
downloadframeworks_av-a289bf696e4b49e0a726fd07914f9dc178653efc.zip
frameworks_av-a289bf696e4b49e0a726fd07914f9dc178653efc.tar.gz
frameworks_av-a289bf696e4b49e0a726fd07914f9dc178653efc.tar.bz2
Fix an issue where the "mFrameCount" field was accessed without its containing object
Change-Id: I6077b61b3e718b9b44ff86ca669a59f96b0b256f
Diffstat (limited to 'services/camera')
-rw-r--r--services/camera/libcameraservice/Camera2Device.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/camera/libcameraservice/Camera2Device.cpp b/services/camera/libcameraservice/Camera2Device.cpp
index f62c0a0..daeeebb 100644
--- a/services/camera/libcameraservice/Camera2Device.cpp
+++ b/services/camera/libcameraservice/Camera2Device.cpp
@@ -1030,7 +1030,7 @@ int Camera2Device::StreamAdapter::enqueue_buffer(const camera2_stream_ops_t* w,
const_cast<StreamAdapter*>(static_cast<const StreamAdapter*>(w));
stream->mFrameCount++;
ALOGVV("Stream %d enqueue: Frame %d (%p) captured at %lld ns",
- stream->mId, mFrameCount, (void*)(*buffer), timestamp);
+ stream->mId, stream->mFrameCount, (void*)(*buffer), timestamp);
int state = stream->mState;
if (state != ACTIVE) {
ALOGE("%s: Called when in bad state: %d", __FUNCTION__, state);