@ -185,6 +185,9 @@ public class Camera1Manager extends BaseCameraManager<Integer, SurfaceHolder.Cal
backgroundHandler.post(new Runnable() {
@Override
public void run() {
// Tzutalin++ 2017/05. If calling release function, it should not be executed
if (context == null) return;
if (prepareVideoRecorder()) {
videoRecorder.start();
isVideoRecording = true;
@ -267,6 +267,9 @@ public final class Camera2Manager extends BaseCameraManager<String, TextureView.
closePreviewSession();