mirror of
https://github.com/FossifyOrg/Camera.git
synced 2026-06-12 01:58:07 -04:00
init video recorder only when the surface is ready
This commit is contained in:
@@ -236,6 +236,10 @@ public class Preview extends ViewGroup implements SurfaceHolder.Callback, View.O
|
||||
@Override
|
||||
public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) {
|
||||
setupPreview();
|
||||
|
||||
if (isVideoMode) {
|
||||
initRecorder();
|
||||
}
|
||||
}
|
||||
|
||||
private void setupPreview() {
|
||||
|
||||
Reference in New Issue
Block a user