release the mediarecorder at closing the camera too
This commit is contained in:
parent
2b6370c77e
commit
8443aac425
|
@ -206,6 +206,8 @@ class PreviewCameraTwo : ViewGroup, TextureView.SurfaceTextureListener, MyPrevie
|
|||
mCameraDevice = null
|
||||
mImageReader?.close()
|
||||
mImageReader = null
|
||||
mMediaRecorder?.release()
|
||||
mMediaRecorder = null
|
||||
} catch (e: Exception) {
|
||||
} finally {
|
||||
mCameraOpenCloseLock.release()
|
||||
|
|
Loading…
Reference in New Issue