Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
JITSI: catch exception in Camera2Enumerator.isSupported()
Avoids this exception: Fatal Exception: java.lang.RuntimeException: Camera is being used after Camera.release() was called at android.hardware.Camera._enableShutterSound(Camera.java) at android.hardware.Camera.updateAppOpsPlayAudio + 1786(Camera.java:1786) at android.hardware.Camera.initAppOps + 598(Camera.java:598) at android.hardware.Camera.(Camera.java:591) at android.hardware.Camera.getEmptyParameters + 2146(Camera.java:2146) at android.hardware.camera2.legacy.LegacyMetadataMapper.createCharacteristics + 151(LegacyMetadataMapper.java:151) at android.hardware.camera2.CameraManager.getCameraCharacteristics + 347(CameraManager.java:347) at org.webrtc.Camera2Enumerator.isSupported + 116(Camera2Enumerator.java:116)
- Loading branch information