2001-11-06 Lutz M�ller <urc8@rz.uni-karlsruhe.de>

* libgphoto2/gphoto2-filesys.c: Don't trust the camera libraries,
          set name, type, and adjust name for mime type after getting a file.


git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2943 67ed7778-7388-44ab-90cf-0a291f65f57c
This commit is contained in:
Lutz Mueller
2001-11-07 06:45:50 +00:00
parent 2456f03457
commit eeb416b7f2
2 changed files with 10 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
2001-11-06 Lutz Müller <urc8@rz.uni-karlsruhe.de>
* libgphoto2/gphoto2-filesys.c: Don't trust the camera libraries,
set name, type, and adjust name for mime type after getting a file.
2001-11-06 Lutz Müller <urc8@rz.uni-karlsruhe.de>
Chris Pinkham <cpinkham@corp.infi.net> decoded the thumbnails:

View File

@@ -1227,8 +1227,12 @@ gp_filesystem_get_file (CameraFilesystem *fs, const char *folder,
return (GP_ERROR);
}
/* We don't trust the camera drivers */
CHECK_RESULT (gp_file_set_type (tmp, type));
CHECK_RESULT (gp_file_set_name (tmp, filename));
CHECK_RESULT (gp_file_set_name (tmp, filename));
CHECK_RESULT (gp_file_adjust_name_for_mime_type (tmp));
/* Remember the file (cache) */
CHECK_RESULT (gp_file_copy (file, tmp));
return (GP_OK);