Link to bug tracker replaced by bug description
This commit is contained in:
parent
bef6de9025
commit
7dda8e2cb8
@ -57,7 +57,8 @@ public class Tutorial3View extends JavaCameraView implements PictureCallback {
|
|||||||
public void takePicture(final String fileName) {
|
public void takePicture(final String fileName) {
|
||||||
Log.i(TAG, "Taking picture");
|
Log.i(TAG, "Taking picture");
|
||||||
this.mPictureFileName = fileName;
|
this.mPictureFileName = fileName;
|
||||||
// Clear up buffers to avoid bug http://code.opencv.org/issues/2961
|
// Postview and jpeg are sent in the same buffers if the queue is not empty when performing a capture.
|
||||||
|
// Clear up buffers to avoid mCamera.takePicture to be stuck because of a memory issue
|
||||||
mCamera.setPreviewCallback(null);
|
mCamera.setPreviewCallback(null);
|
||||||
|
|
||||||
// PictureCallback is implemented by the current class
|
// PictureCallback is implemented by the current class
|
||||||
|
Loading…
x
Reference in New Issue
Block a user