From fe00cade249f81bb05089a14c030823775eede42 Mon Sep 17 00:00:00 2001 From: Dylan McIntyre Date: Mon, 3 Apr 2017 13:51:04 -0400 Subject: [PATCH] release mediarecorder in endVideo --- camerakit/src/main/api16/com/flurgle/camerakit/Camera1.java | 1 + 1 file changed, 1 insertion(+) diff --git a/camerakit/src/main/api16/com/flurgle/camerakit/Camera1.java b/camerakit/src/main/api16/com/flurgle/camerakit/Camera1.java index ca814c58..68d747b6 100644 --- a/camerakit/src/main/api16/com/flurgle/camerakit/Camera1.java +++ b/camerakit/src/main/api16/com/flurgle/camerakit/Camera1.java @@ -230,6 +230,7 @@ public class Camera1 extends CameraImpl { @Override void endVideo() { mMediaRecorder.stop(); + mMediaRecorder.release(); mMediaRecorder = null; mCameraListener.onVideoTaken(mVideoFile); }