Update SrsCameraView.java

camera2
thegobot 6 years ago committed by GitHub
parent 826a8226e1
commit 0ed6343411
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -145,12 +145,11 @@ public class SrsCameraView extends GLSurfaceView implements GLSurfaceView.Render
public int[] setPreviewResolution(int width, int height) {
if (mCamera == null) {
mCamera = openCamera();
if (mCamera == null) {
return new int[] { 0, 0};
}
}
if (mCamera != null) {
stopCamera();
}
mCamera = openCamera();
mPreviewWidth = width;
mPreviewHeight = height;

Loading…
Cancel
Save