From d495ffb90f71b057946790fa41805fa9be3b3ca4 Mon Sep 17 00:00:00 2001 From: Mariusz Woloszyn Date: Fri, 29 Aug 2003 08:27:28 +0000 Subject: [PATCH] * library.c: allow downloading thumbnail of nonimage objects, however only in case that the ThumbCompressedSize is greater than 0 git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@6686 67ed7778-7388-44ab-90cf-0a291f65f57c --- camlibs/ptp2/ChangeLog | 3 +++ camlibs/ptp2/library.c | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/camlibs/ptp2/ChangeLog b/camlibs/ptp2/ChangeLog index f2a7556e1..32192eb23 100644 --- a/camlibs/ptp2/ChangeLog +++ b/camlibs/ptp2/ChangeLog @@ -1,3 +1,6 @@ +2003-08-29 Mariusz Woloszyn + * library.c: allow downloading thumbnail of nonimage objects, + however only in case that the ThumbCompressedSize is greater than 0 2003-08-28 Mariusz Woloszyn * library.c: added Canon IXUS 400, thanks to Till Kamppeter 2003-08-28 Mariusz Woloszyn diff --git a/camlibs/ptp2/library.c b/camlibs/ptp2/library.c index 391bc9b4e..b7925dd04 100644 --- a/camlibs/ptp2/library.c +++ b/camlibs/ptp2/library.c @@ -873,7 +873,8 @@ get_file_func (CameraFilesystem *fs, const char *folder, const char *filename, case GP_FILE_TYPE_PREVIEW: /* Don't allow to get thumb of nonimage objects! */ - if ((oi->ObjectFormat & 0x0800) == 0) return (GP_ERROR_NOT_SUPPORTED); + // Redundant??? +// if ((oi->ObjectFormat & 0x0800) == 0) return (GP_ERROR_NOT_SUPPORTED); /* if no thumb, for some reason */ if((size=oi->ThumbCompressedSize)==0) return (GP_ERROR_NOT_SUPPORTED); CPR (context, ptp_getthumb(&camera->pl->params,