From c4ef922d403bb65f4ed808bbc54b4feb7138d981 Mon Sep 17 00:00:00 2001 From: Lutz Mueller Date: Sat, 25 Aug 2001 18:38:21 +0000 Subject: [PATCH] Small fix to my previous patch. git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2075 67ed7778-7388-44ab-90cf-0a291f65f57c --- libgphoto2/camera.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libgphoto2/camera.c b/libgphoto2/camera.c index 338d6c865..16e0e13e1 100644 --- a/libgphoto2/camera.c +++ b/libgphoto2/camera.c @@ -526,6 +526,8 @@ gp_camera_file_get (Camera *camera, const char *folder, const char *file, if (strlen (file) == 0) return (GP_ERROR_FILE_NOT_FOUND); + CHECK_RESULT (gp_file_set_type (camera_file, type)); + return (camera->functions->file_get (camera, folder, file, type, camera_file)); }