camera_roll_close_video()

Close the file descriptor for a video file on a camera roll.

Synopsis:

#include <camera/camera_api.h>
 
camera_error_t camera_roll_close_video(int fd)

Arguments:

fd

The file descriptor to the open video file on the camera roll.

Library:

libcamapi

Description:

The camera roll is a directory on the device where the camera application saves files. The camera service manages unique filenames on behalf of the user. Use this function to close the file descriptor that was returned by calling the camera_roll_open_video() function on the camera roll.

Returns:

CAMERA_OK when the function successfully completes, otherwise CAMERA_EINVAL if the size is not allocated, buf is invalid, or the frame type does not exist.