Fix file information
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3266 67ed7778-7388-44ab-90cf-0a291f65f57c
This commit is contained in:
@@ -130,13 +130,12 @@ get_info (Camera *camera, unsigned int n, CameraFileInfo *info)
|
||||
|
||||
info->audio.fields = GP_FILE_INFO_NONE;
|
||||
|
||||
info->preview.fields = GP_FILE_INFO_SIZE | GP_FILE_INFO_TYPE;
|
||||
info->preview.size = buffer_size;
|
||||
info->preview.fields = GP_FILE_INFO_TYPE;
|
||||
strcpy (info->preview.type, GP_MIME_JPEG);
|
||||
|
||||
info->file.fields = GP_FILE_INFO_SIZE | GP_FILE_INFO_PERMISSIONS |
|
||||
GP_FILE_INFO_TYPE | GP_FILE_INFO_NAME;
|
||||
info->file.size = exif_size;
|
||||
info->file.size = exif_size * 1000;
|
||||
info->file.permissions = GP_FILE_PERM_READ;
|
||||
if (!protected)
|
||||
info->file.permissions |= GP_FILE_PERM_DELETE;
|
||||
|
||||
Reference in New Issue
Block a user