Commit ec38ef9b authored by Philipp Hasper's avatar Philipp Hasper Committed by GitHub

CameraBridgeViewBase synchronizes on a final field

Synchronizing against non-final fields is advised against.
parent 6f39f9a6
......@@ -38,7 +38,7 @@ public abstract class CameraBridgeViewBase extends SurfaceView implements Surfac
private Bitmap mCacheBitmap;
private CvCameraViewListener2 mListener;
private boolean mSurfaceExist;
private Object mSyncObject = new Object();
private final Object mSyncObject = new Object();
protected int mFrameWidth;
protected int mFrameHeight;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment