|
|
@ -205,7 +205,7 @@ class Camera1 extends CameraController implements Camera.PreviewCallback, Camera |
|
|
|
mFrameManager.release(); |
|
|
|
mFrameManager.release(); |
|
|
|
|
|
|
|
|
|
|
|
if (mCamera != null) { |
|
|
|
if (mCamera != null) { |
|
|
|
LOG.i("onStop:", "Clean up.", "Ending video."); |
|
|
|
LOG.i("onStop:", "Clean up.", "Ending video. mVideoRecorder is null?", mVideoRecorder == null); |
|
|
|
if (mVideoRecorder != null) { |
|
|
|
if (mVideoRecorder != null) { |
|
|
|
mVideoRecorder.stop(); |
|
|
|
mVideoRecorder.stop(); |
|
|
|
mVideoRecorder = null; |
|
|
|
mVideoRecorder = null; |
|
|
@ -655,6 +655,7 @@ class Camera1 extends CameraController implements Camera.PreviewCallback, Camera |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void run() { |
|
|
|
public void run() { |
|
|
|
mIsTakingVideo = false; |
|
|
|
mIsTakingVideo = false; |
|
|
|
|
|
|
|
LOG.i("stopVideo", "mVideoRecorder is null?", mVideoRecorder == null); |
|
|
|
if (mVideoRecorder != null) { |
|
|
|
if (mVideoRecorder != null) { |
|
|
|
mVideoRecorder.stop(); |
|
|
|
mVideoRecorder.stop(); |
|
|
|
mVideoRecorder = null; |
|
|
|
mVideoRecorder = null; |
|
|
|