summaryrefslogtreecommitdiff
path: root/camlibs
diff options
context:
space:
mode:
authorMarcus Meissner <marcus@jet.franken.de>2023-04-24 11:03:11 +0200
committerMarcus Meissner <marcus@jet.franken.de>2023-04-24 11:03:11 +0200
commit893122bf80c57ccaff77a9641a330f44d2e5b86a (patch)
tree4303eaa45a79fba78f316c55cb07917dc8340aae /camlibs
parent53a4b75d3ccb9f6f41bed217e30a07ddf04d439c (diff)
downloadlibgphoto2-893122bf80c57ccaff77a9641a330f44d2e5b86a.tar.gz
synthesize a capturecomplete event for panasonic cameras, as they dont send on on their own
Diffstat (limited to 'camlibs')
-rw-r--r--camlibs/ptp2/library.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/camlibs/ptp2/library.c b/camlibs/ptp2/library.c
index 1db4ee04a..fd5c7f1a4 100644
--- a/camlibs/ptp2/library.c
+++ b/camlibs/ptp2/library.c
@@ -5458,6 +5458,11 @@ downloadfile:
path->name[0]='\0';
path->folder[0]='\0';
+ /* Synthesize a capture complete event to avoid waits. */
+ event.Code = PTP_EC_CaptureComplete;
+ event.Nparam = 0;
+ ptp_add_event (params, &event);
+
if (newobject != 0) /* NOTE: association add handled */
return add_object_to_fs_and_path (camera, newobject, path, context);
return GP_ERROR;