summaryrefslogtreecommitdiffstats
path: root/services/camera/libcameraservice
diff options
context:
space:
mode:
authorJames Dong <jdong@google.com>2010-12-09 11:08:14 -0800
committerJames Dong <jdong@google.com>2010-12-10 07:19:13 -0800
commit74920cb1a84907f8732d67f4fae7a4768665d5d2 (patch)
tree3de44e605897479b668e431887f6c266bc3b193f /services/camera/libcameraservice
parent337885be6e0eadda2d54977104c5738b03f6fb34 (diff)
downloadframeworks_base-74920cb1a84907f8732d67f4fae7a4768665d5d2.zip
frameworks_base-74920cb1a84907f8732d67f4fae7a4768665d5d2.tar.gz
frameworks_base-74920cb1a84907f8732d67f4fae7a4768665d5d2.tar.bz2
We requires camera hal's implementation should not track the ref count of any outstanding video frames and ignore
releaseRecordingFrame() call after it receives disableMsgType(CAMERA_MSG_VIDEO_FRAME). Change-Id: I2ecb9b3b11dab6bf868ccf8effda1b8df5bcde3c
Diffstat (limited to 'services/camera/libcameraservice')
-rw-r--r--services/camera/libcameraservice/CameraService.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/services/camera/libcameraservice/CameraService.cpp b/services/camera/libcameraservice/CameraService.cpp
index 98b934c..15f6a44 100644
--- a/services/camera/libcameraservice/CameraService.cpp
+++ b/services/camera/libcameraservice/CameraService.cpp
@@ -933,10 +933,7 @@ void CameraService::Client::dataCallbackTimestamp(nsecs_t timestamp,
sp<Client> client = getClientFromCookie(user);
if (client == 0) return;
- if (!client->lockIfMessageWanted(msgType)) {
- client->releaseRecordingFrame(dataPtr);
- return;
- }
+ if (!client->lockIfMessageWanted(msgType)) return;
if (dataPtr == 0) {
LOGE("Null data returned in data with timestamp callback");