summaryrefslogtreecommitdiffstats
path: root/services
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
commit986ef2ad4c96952711d87af481f3afb40aa10775 (patch)
treed685585e64bfe6a46d7deabd1190fea460ebef3a /services
parentb41ad26dba96d70f53fff46d10eb589c2b3eb6f8 (diff)
downloadframeworks_av-986ef2ad4c96952711d87af481f3afb40aa10775.zip
frameworks_av-986ef2ad4c96952711d87af481f3afb40aa10775.tar.gz
frameworks_av-986ef2ad4c96952711d87af481f3afb40aa10775.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')
-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");