properly stop recording when its stopped by switching to photo mode

This commit is contained in:
tibbi 2016-06-19 00:17:54 +02:00
parent ecd50486d2
commit cfded9650e
1 changed files with 2 additions and 2 deletions

View File

@ -504,10 +504,10 @@ public class Preview extends ViewGroup implements SurfaceHolder.Callback, View.O
}
public void initPhotoMode() {
mIsRecording = false;
mIsVideoMode = false;
stopRecording();
cleanupRecorder();
mIsRecording = false;
mIsVideoMode = false;
}
// VIDEO RECORDING