Fix #590 by throwing

pull/588/head
Mattia Iavarone 6 years ago
parent 48f2853ac4
commit 7ab98932a5
  1. 2
      cameraview/src/main/java/com/otaliastudios/cameraview/engine/Camera2Engine.java

@ -1251,7 +1251,7 @@ public class Camera2Engine extends CameraEngine implements ImageReader.OnImageAv
// the preview. We don't want to only check bind state or startPreview can fail.
if (getBindState() == STATE_STOPPED) {
LOG.i("setHasFrameProcessors", "not bound so won't restart.");
} else if (true || getPreviewState() == STATE_STARTED) {
} else if (getPreviewState() == STATE_STARTED) {
// This needs a restartBind(). NOTE: if taking video, this stops it.
LOG.i("setHasFrameProcessors", "bound with preview. Calling restartBind().");
restartBind();

Loading…
Cancel
Save