Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0a06d8d6 authored by Mark Harman's avatar Mark Harman
Browse files

Fix crashes if video recording fails to start.

parent 7c8e44a2
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -4677,6 +4677,7 @@ public class Preview implements SurfaceHolder.Callback, TextureView.SurfaceTextu
				if( MyDebug.LOG )
					Log.e(TAG, "failed to save video");
				e.printStackTrace();
				this.video_recorder = local_video_recorder;
				if( told_app_starting ) {
					applicationInterface.stoppingVideo();
				}
@@ -4692,6 +4693,7 @@ public class Preview implements SurfaceHolder.Callback, TextureView.SurfaceTextu
				if( MyDebug.LOG )
					Log.e(TAG, "camera exception starting video recorder");
				e.printStackTrace();
				this.video_recorder = local_video_recorder; // still assign, so failedToStartVideoRecorder() will release the video_recorder
				if( told_app_starting ) {
					applicationInterface.stoppingVideo();
				}
@@ -4701,6 +4703,7 @@ public class Preview implements SurfaceHolder.Callback, TextureView.SurfaceTextu
				if( MyDebug.LOG )
					Log.e(TAG, "nofreestorageexception starting video recorder");
				e.printStackTrace();
				this.video_recorder = local_video_recorder;
				if( told_app_starting ) {
					applicationInterface.stoppingVideo();
				}