diff options
author | James Dong <jdong@google.com> | 2011-01-10 20:42:21 -0800 |
---|---|---|
committer | James Dong <jdong@google.com> | 2011-01-10 20:43:33 -0800 |
commit | b0fb6bf746f1d611033c55a4a1ab5a4b0e212a95 (patch) | |
tree | 8e66813414547645fdffd9eaae53f81f5fd2e400 /media | |
parent | 0ecfbd1cf37dbfb44d19c27351f5769309ac028d (diff) | |
download | frameworks_av-b0fb6bf746f1d611033c55a4a1ab5a4b0e212a95.zip frameworks_av-b0fb6bf746f1d611033c55a4a1ab5a4b0e212a95.tar.gz frameworks_av-b0fb6bf746f1d611033c55a4a1ab5a4b0e212a95.tar.bz2 |
Don't release the video recording frame after recording is stopped in CameraSourceTimeLapse.cpp
bug - 3334999
Change-Id: I1c83080713696221048da9b1a9f8c2ee48849ade
Diffstat (limited to 'media')
-rw-r--r-- | media/libstagefright/CameraSourceTimeLapse.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/media/libstagefright/CameraSourceTimeLapse.cpp b/media/libstagefright/CameraSourceTimeLapse.cpp index 9677838..31b6ec9 100644 --- a/media/libstagefright/CameraSourceTimeLapse.cpp +++ b/media/libstagefright/CameraSourceTimeLapse.cpp @@ -347,7 +347,8 @@ void CameraSourceTimeLapse::stopCameraRecording() { } void CameraSourceTimeLapse::releaseRecordingFrame(const sp<IMemory>& frame) { - if (!mUseStillCameraForTimeLapse) { + if (!mUseStillCameraForTimeLapse && + mCamera != NULL) { mCamera->releaseRecordingFrame(frame); } } |