diff options
author | Owen Lin <owenlin@google.com> | 2009-12-02 18:37:16 +0800 |
---|---|---|
committer | Owen Lin <owenlin@google.com> | 2009-12-02 18:37:16 +0800 |
commit | b15fd7eac3cdd69662cd0bbeb11a7d99b8f143cc (patch) | |
tree | 2d2aed40916fdc01fe12c718055fb72ba8515b47 /src | |
parent | f651904fc747442f849bb084aaaf4d3245106860 (diff) | |
download | LegacyCamera-b15fd7eac3cdd69662cd0bbeb11a7d99b8f143cc.zip LegacyCamera-b15fd7eac3cdd69662cd0bbeb11a7d99b8f143cc.tar.gz LegacyCamera-b15fd7eac3cdd69662cd0bbeb11a7d99b8f143cc.tar.bz2 |
Add check if the media is still recording when the timeup event is comming.
Change-Id: If3ab51b5da867378182960694dab12af3cae5da1
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/camera/VideoCamera.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/camera/VideoCamera.java b/src/com/android/camera/VideoCamera.java index 96d9a98..315600e 100644 --- a/src/com/android/camera/VideoCamera.java +++ b/src/com/android/camera/VideoCamera.java @@ -1098,10 +1098,10 @@ public class VideoCamera extends NoSearchActivity // from MediaRecorder.OnInfoListener public void onInfo(MediaRecorder mr, int what, int extra) { if (what == MediaRecorder.MEDIA_RECORDER_INFO_MAX_DURATION_REACHED) { - onStopVideoRecording(); + if (mMediaRecorderRecording) onStopVideoRecording(); } else if (what == MediaRecorder.MEDIA_RECORDER_INFO_MAX_FILESIZE_REACHED) { - onStopVideoRecording(); + if (mMediaRecorderRecording) onStopVideoRecording(); // Show the toast. Toast.makeText(VideoCamera.this, R.string.video_reach_size_limit, |