don't try to download ancillary objects

git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@3624 67ed7778-7388-44ab-90cf-0a291f65f57c
This commit is contained in:
Mariusz Woloszyn
2001-12-30 16:13:04 +00:00
parent 916a65fe0c
commit e91ddf84f6

View File

@@ -407,6 +407,8 @@ get_file_func (CameraFilesystem *fs, const char *folder, const char *filename,
CPR (camera, ptp_getobjectinfo(&camera->pl->params,
camera->pl->params.handles.handler[image_id],&ptp_objectinfo));
// don't try to download ancillary objects!
if ((ptp_objectinfo.ObjectFormat & 0x0800) == 0) return (GP_OK);
switch (type) {
case GP_FILE_TYPE_NORMAL:
size=le32toh(ptp_objectinfo.ObjectCompressedSize);