diff options
author | Zhijun He <zhijunhe@google.com> | 2013-07-31 21:17:58 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2013-07-31 21:17:58 +0000 |
commit | c5f8c3e5502f3c220fdbb54573608f3b3bd47517 (patch) | |
tree | fea374510d195e9252fa28070a8be595e27296da /services | |
parent | 30873bfd08255e2c4e98ff5732ffff2838772617 (diff) | |
parent | 11d0d44d583f679638cc927bfffe920e495e90cc (diff) | |
download | frameworks_av-c5f8c3e5502f3c220fdbb54573608f3b3bd47517.zip frameworks_av-c5f8c3e5502f3c220fdbb54573608f3b3bd47517.tar.gz frameworks_av-c5f8c3e5502f3c220fdbb54573608f3b3bd47517.tar.bz2 |
Merge "Camera: fix the metadate parcel write issue"
Diffstat (limited to 'services')
-rw-r--r-- | services/camera/libcameraservice/common/FrameProcessorBase.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/services/camera/libcameraservice/common/FrameProcessorBase.cpp b/services/camera/libcameraservice/common/FrameProcessorBase.cpp index 10bc6ea..e7b440a 100644 --- a/services/camera/libcameraservice/common/FrameProcessorBase.cpp +++ b/services/camera/libcameraservice/common/FrameProcessorBase.cpp @@ -143,7 +143,7 @@ status_t FrameProcessorBase::processListeners(const CameraMetadata &frame, __FUNCTION__, device->getId()); return BAD_VALUE; } - int32_t frameId = entry.data.i32[0]; + int32_t requestId = entry.data.i32[0]; List<sp<FilteredListener> > listeners; { @@ -151,8 +151,8 @@ status_t FrameProcessorBase::processListeners(const CameraMetadata &frame, List<RangeListener>::iterator item = mRangeListeners.begin(); while (item != mRangeListeners.end()) { - if (frameId >= item->minId && - frameId < item->maxId) { + if (requestId >= item->minId && + requestId < item->maxId) { sp<FilteredListener> listener = item->listener.promote(); if (listener == 0) { item = mRangeListeners.erase(item); @@ -167,7 +167,7 @@ status_t FrameProcessorBase::processListeners(const CameraMetadata &frame, ALOGV("Got %d range listeners out of %d", listeners.size(), mRangeListeners.size()); List<sp<FilteredListener> >::iterator item = listeners.begin(); for (; item != listeners.end(); item++) { - (*item)->onFrameAvailable(frameId, frame); + (*item)->onFrameAvailable(requestId, frame); } return OK; } |