Loading app/src/main/java/net/sourceforge/opencamera/Preview/Preview.java +21 −16 Original line number Diff line number Diff line Loading @@ -804,9 +804,10 @@ public class Preview implements SurfaceHolder.Callback, TextureView.SurfaceTextu if( MyDebug.LOG ) Log.d(TAG, "stop video recording"); //this.phase = PHASE_NORMAL; try { video_recorder.setOnErrorListener(null); video_recorder.setOnInfoListener(null); try { if( MyDebug.LOG ) Log.d(TAG, "about to call video_recorder.stop()"); video_recorder.stop(); Loading Loading @@ -846,6 +847,11 @@ public class Preview implements SurfaceHolder.Callback, TextureView.SurfaceTextu applicationInterface.onVideoRecordStopError(profile); } } videoRecordingStopped(); } } private void videoRecordingStopped() { if( MyDebug.LOG ) Log.d(TAG, "reset video_recorder"); video_recorder.reset(); Loading @@ -861,7 +867,6 @@ public class Preview implements SurfaceHolder.Callback, TextureView.SurfaceTextu video_uri = null; video_filename = null; } } private Context getContext() { return applicationInterface.getContext(); Loading Loading
app/src/main/java/net/sourceforge/opencamera/Preview/Preview.java +21 −16 Original line number Diff line number Diff line Loading @@ -804,9 +804,10 @@ public class Preview implements SurfaceHolder.Callback, TextureView.SurfaceTextu if( MyDebug.LOG ) Log.d(TAG, "stop video recording"); //this.phase = PHASE_NORMAL; try { video_recorder.setOnErrorListener(null); video_recorder.setOnInfoListener(null); try { if( MyDebug.LOG ) Log.d(TAG, "about to call video_recorder.stop()"); video_recorder.stop(); Loading Loading @@ -846,6 +847,11 @@ public class Preview implements SurfaceHolder.Callback, TextureView.SurfaceTextu applicationInterface.onVideoRecordStopError(profile); } } videoRecordingStopped(); } } private void videoRecordingStopped() { if( MyDebug.LOG ) Log.d(TAG, "reset video_recorder"); video_recorder.reset(); Loading @@ -861,7 +867,6 @@ public class Preview implements SurfaceHolder.Callback, TextureView.SurfaceTextu video_uri = null; video_filename = null; } } private Context getContext() { return applicationInterface.getContext(); Loading