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