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:
@@ -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:
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user