Don't release the video recording frame after recording is stopped in CameraSourceTimeLapse.cpp

bug - 3334999

Change-Id: I1c83080713696221048da9b1a9f8c2ee48849ade
This commit is contained in:
James Dong
2011-01-10 20:42:21 -08:00
parent f527a1d936
commit 545c22ffd2

View File

@@ -347,7 +347,8 @@ void CameraSourceTimeLapse::stopCameraRecording() {
}
void CameraSourceTimeLapse::releaseRecordingFrame(const sp<IMemory>& frame) {
if (!mUseStillCameraForTimeLapse) {
if (!mUseStillCameraForTimeLapse &&
mCamera != NULL) {
mCamera->releaseRecordingFrame(frame);
}
}