Stop using the video viewfinder.
camera_error_t camera_stop_video_viewfinder(camera_handle_t handle)
The handle returned by a call to the camera_open() function.
You can only stop the viewfinder after you have successfully started it. After you stop running the video viewfinder, you cannot encode video.
CAMERA_OK when the function successfully completes, otherwise another camera_error_t value that provides the reason that the call failed.