2001-09-22 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
Patch from Ilya Konstantinov <future@shiny.co.il>: * camlibs/sierra/sierra.c (get_info_func): Set the filename. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2293 67ed7778-7388-44ab-90cf-0a291f65f57c
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2001-09-22 Lutz Müller <urc8@rz.uni-karlsruhe.de>
|
||||
|
||||
Patch from Ilya Konstantinov <future@shiny.co.il>:
|
||||
|
||||
* camlibs/sierra/sierra.c (get_info_func): Set the filename.
|
||||
|
||||
2001-09-21 Raymond Penners <raymond@dotsphinx.com>
|
||||
|
||||
* AUTHORS
|
||||
|
||||
@@ -204,9 +204,14 @@ get_info_func (CameraFilesystem *fs, const char *folder, const char *filename,
|
||||
CHECK_STOP (camera, sierra_change_folder (camera, folder));
|
||||
CHECK_STOP (camera, sierra_set_int_register (camera, 4, n + 1));
|
||||
|
||||
info->file.fields = GP_FILE_INFO_SIZE | GP_FILE_INFO_TYPE;
|
||||
info->file.fields = GP_FILE_INFO_SIZE | GP_FILE_INFO_TYPE |
|
||||
GP_FILE_INFO_NAME;
|
||||
info->preview.fields = GP_FILE_INFO_SIZE | GP_FILE_INFO_TYPE;
|
||||
|
||||
/* Name of image */
|
||||
strncpy (info->file.name, filename, sizeof (info->file.name) - 1);
|
||||
info->file.name[sizeof (info->file.name) - 1] = '\0';
|
||||
|
||||
/* Get the size of the current image */
|
||||
CHECK_STOP (camera, sierra_get_int_register (camera, 12, &l));
|
||||
info->file.size = l;
|
||||
|
||||
Reference in New Issue
Block a user