Callback to error in class Camera1

pull/196/head
Erick Daniel Juarez Gil 7 years ago
parent 0200e2cf61
commit 16299107fb
  1. 1
      cameraview/src/main/java/com/otaliastudios/cameraview/Camera1.java

@ -663,6 +663,7 @@ class Camera1 extends CameraController implements Camera.PreviewCallback, Camera
} catch (Exception e) { } catch (Exception e) {
// This can happen if endVideo() is called right after startVideo(). We don't care. // This can happen if endVideo() is called right after startVideo(). We don't care.
LOG.w("endVideoImmediately:", "Error while closing media recorder. Swallowing", e); LOG.w("endVideoImmediately:", "Error while closing media recorder. Swallowing", e);
mCameraCallbacks.dispatchError(new CameraException(e));
} }
mMediaRecorder.release(); mMediaRecorder.release();
mMediaRecorder = null; mMediaRecorder = null;

Loading…
Cancel
Save