From 1bd22de1f4d21c59f0c8f4d7fd7a3b7d895ac0b1 Mon Sep 17 00:00:00 2001 From: Guruprasad Gaonkar Date: Tue, 10 Sep 2013 12:58:50 -0700 Subject: stop recording from camcorder app in case of error. This change makes sure that stopvideoRecording is called for all error returns to the video recording app. Change-Id: I70a942dab24e2665d76b3ff060e7ccf3d134e429 --- src/com/android/camera/VideoModule.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/camera/VideoModule.java b/src/com/android/camera/VideoModule.java index 6ce8cb331..e03b6cf1f 100644 --- a/src/com/android/camera/VideoModule.java +++ b/src/com/android/camera/VideoModule.java @@ -1490,9 +1490,9 @@ public class VideoModule implements CameraModule, @Override public void onError(MediaRecorder mr, int what, int extra) { Log.e(TAG, "MediaRecorder error. what=" + what + ". extra=" + extra); + stopVideoRecording(); if (what == MediaRecorder.MEDIA_RECORDER_ERROR_UNKNOWN) { // We may have run out of space on the sdcard. - stopVideoRecording(); mActivity.updateStorageSpaceAndHint(); } } -- cgit v1.2.3