diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2021-10-03 14:54:15 +0200 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2021-10-03 14:54:15 +0200 |
commit | fff4648b083381de36e75b82868e7adabe5d6001 (patch) | |
tree | 60bd0dfd981393ad633894c7f5b5508f77974c9d /camlibs | |
parent | ab33b92159fe446dfd7df4f7e08760c2d09783b1 (diff) | |
download | libgphoto2-fff4648b083381de36e75b82868e7adabe5d6001.tar.gz |
requzest the objectinfo to be loaded
Diffstat (limited to 'camlibs')
-rw-r--r-- | camlibs/ptp2/library.c | 2 |
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); |