summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--camlibs/ptp2/library.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/camlibs/ptp2/library.c b/camlibs/ptp2/library.c
index 722300c6d..c746a8a3e 100644
--- a/camlibs/ptp2/library.c
+++ b/camlibs/ptp2/library.c
@@ -4294,7 +4294,7 @@ camera_canon_eos_capture (Camera *camera, CameraCaptureType type, CameraFilePath
/* just add it to the filesystem, and return in CameraPath */
GP_LOG_D ("Found new object! OID 0x%x, name %s", (unsigned int)entry.u.object.oid, entry.u.object.oi.Filename);
memcpy (&oi, &entry.u.object.oi, sizeof(oi));
- ret = ptp_object_want (params, entry.u.object.oid, 0, &ob);
+ ret = ptp_object_want (params, entry.u.object.oid, PTPOBJECT_OBJECTINFO_LOADED, &ob);
if (ret != PTP_RC_OK)
continue;
strcpy (path->name, oi.Filename);