Merge "Don't release the video recording frame after recording is stopped in CameraSourceTimeLapse.cpp" into honeycomb

This commit is contained in:
James Dong
2011-01-11 08:56:02 -08:00
committed by Android (Google) Code Review

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);
}
}