commit | b0fb6bf746f1d611033c55a4a1ab5a4b0e212a95 | [log] [tgz] |
---|---|---|
author | James Dong <jdong@google.com> | Mon Jan 10 20:42:21 2011 -0800 |
committer | James Dong <jdong@google.com> | Mon Jan 10 20:43:33 2011 -0800 |
tree | 8e66813414547645fdffd9eaae53f81f5fd2e400 | |
parent | 0ecfbd1cf37dbfb44d19c27351f5769309ac028d [diff] |
Don't release the video recording frame after recording is stopped in CameraSourceTimeLapse.cpp bug - 3334999 Change-Id: I1c83080713696221048da9b1a9f8c2ee48849ade
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::releaseRecordingFrame(const sp<IMemory>& frame) { - if (!mUseStillCameraForTimeLapse) { + if (!mUseStillCameraForTimeLapse && + mCamera != NULL) { mCamera->releaseRecordingFrame(frame); } }