mirror of
https://github.com/SimpleMobileTools/Simple-Camera.git
synced 2025-06-27 09:02:59 +02:00
release the mediarecorder at closing the camera too
This commit is contained in:
@ -206,6 +206,8 @@ class PreviewCameraTwo : ViewGroup, TextureView.SurfaceTextureListener, MyPrevie
|
|||||||
mCameraDevice = null
|
mCameraDevice = null
|
||||||
mImageReader?.close()
|
mImageReader?.close()
|
||||||
mImageReader = null
|
mImageReader = null
|
||||||
|
mMediaRecorder?.release()
|
||||||
|
mMediaRecorder = null
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
} finally {
|
} finally {
|
||||||
mCameraOpenCloseLock.release()
|
mCameraOpenCloseLock.release()
|
||||||
|
Reference in New Issue
Block a user