summaryrefslogtreecommitdiff
path: root/src/com/android/camera/VideoModule.java
diff options
context:
space:
mode:
authorSanthosh Kumar Thimmanna Bhattar <sthim@codeaurora.org>2014-01-10 11:38:47 +0530
committerSteve Kondik <shade@chemlab.org>2014-02-26 07:46:12 +0100
commite6fe2f5a19de3bc56a8e7b3444b8f46bfda3dada (patch)
tree4bbbe5ae0c7ae951528f8c693e3eb655e4ff8e53 /src/com/android/camera/VideoModule.java
parentce73fe7a2d056360ce7d9fe3f8e7ddc32ec4ccf8 (diff)
Camera2: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. ( cherrypicked from commit 9d65272083d0a78ca4adefbffc38f98b44cfa489 ) Change-Id: I88c4ac92f065e5008c16a7697a84301e1ff5e98f CRs-Fixed: 517351
Diffstat (limited to 'src/com/android/camera/VideoModule.java')
-rw-r--r--src/com/android/camera/VideoModule.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/camera/VideoModule.java b/src/com/android/camera/VideoModule.java
index 32a02052..530dca8d 100644
--- a/src/com/android/camera/VideoModule.java
+++ b/src/com/android/camera/VideoModule.java
@@ -1546,9 +1546,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();
}
}