diff options
| author | jinwu <jinwu@codeaurora.org> | 2018-12-20 09:52:12 +0800 |
|---|---|---|
| committer | jinwu <jinwu@codeaurora.org> | 2018-12-20 09:52:12 +0800 |
| commit | 1fb423130dbecb74a1cee280337ea7334e5ec952 (patch) | |
| tree | 9e3abf4f385ec42fd602d84f3cc36af1dd8d971e /src/com/android/camera/CaptureModule.java | |
| parent | c48104739d7221ff3c617f34f2d6c63be5888288 (diff) | |
It recording failed, then remove video file first
Change-Id: I49b2ffd5690ab511916cd2f27d7434f0027c78d8
Diffstat (limited to 'src/com/android/camera/CaptureModule.java')
| -rwxr-xr-x | src/com/android/camera/CaptureModule.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/com/android/camera/CaptureModule.java b/src/com/android/camera/CaptureModule.java index b2ebc34be..a34081ffc 100755 --- a/src/com/android/camera/CaptureModule.java +++ b/src/com/android/camera/CaptureModule.java @@ -7200,8 +7200,8 @@ public class CaptureModule implements CameraModule, PhotoController, private void releaseMediaRecorder() { Log.v(TAG, "Releasing media recorder."); + cleanupEmptyFile(); if (mMediaRecorder != null) { - cleanupEmptyFile(); try{ mMediaRecorder.reset(); mMediaRecorder.release(); @@ -7210,7 +7210,6 @@ public class CaptureModule implements CameraModule, PhotoController, e.printStackTrace(); } } - mVideoFilename = null; } private void cleanupEmptyFile() { |
