summaryrefslogtreecommitdiff
path: root/camlibs
diff options
context:
space:
mode:
authorMarcus Meissner <marcus@jet.franken.de>2022-02-12 16:14:39 +0100
committerMarcus Meissner <marcus@jet.franken.de>2022-02-12 16:14:39 +0100
commite7d1b1e2081f1b258a2070356b21d3cd0d01c56f (patch)
tree93194a7d354cf972bc06b5b42518976971285e17 /camlibs
parentae1b23a0132594c404bf9ebdc12adc70ba3b6347 (diff)
downloadlibgphoto2-e7d1b1e2081f1b258a2070356b21d3cd0d01c56f.tar.gz
we need to copy over objectinfo, as oi.Storage is used... https://github.com/gphoto/libgphoto2/issues/770
Diffstat (limited to 'camlibs')
-rw-r--r--camlibs/ptp2/library.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/camlibs/ptp2/library.c b/camlibs/ptp2/library.c
index e4ef4e43c..844eb45f1 100644
--- a/camlibs/ptp2/library.c
+++ b/camlibs/ptp2/library.c
@@ -4339,6 +4339,7 @@ camera_canon_eos_capture (Camera *camera, CameraCaptureType type, CameraFilePath
res = add_object_to_fs_and_path (camera, entry.u.object.oid, path, context);
if (res < GP_OK)
break;
+ memcpy (&oi, &entry.u.object.oi, sizeof(oi));
if (entry.u.object.oi.ObjectFormat == PTP_OFC_Association)
continue;