From 16299107fbd9a3d6b84d063f6678f7103a578eb3 Mon Sep 17 00:00:00 2001 From: Erick Daniel Juarez Gil Date: Wed, 4 Apr 2018 17:29:52 -0500 Subject: [PATCH] Callback to error in class Camera1 --- .../src/main/java/com/otaliastudios/cameraview/Camera1.java | 1 + 1 file changed, 1 insertion(+) diff --git a/cameraview/src/main/java/com/otaliastudios/cameraview/Camera1.java b/cameraview/src/main/java/com/otaliastudios/cameraview/Camera1.java index 6ff4347a..b94294a9 100644 --- a/cameraview/src/main/java/com/otaliastudios/cameraview/Camera1.java +++ b/cameraview/src/main/java/com/otaliastudios/cameraview/Camera1.java @@ -663,6 +663,7 @@ class Camera1 extends CameraController implements Camera.PreviewCallback, Camera } catch (Exception e) { // This can happen if endVideo() is called right after startVideo(). We don't care. LOG.w("endVideoImmediately:", "Error while closing media recorder. Swallowing", e); + mCameraCallbacks.dispatchError(new CameraException(e)); } mMediaRecorder.release(); mMediaRecorder = null;