diff options
author | Marcus Meissner <marcus@jet.franken.de> | 2023-04-24 11:03:11 +0200 |
---|---|---|
committer | Marcus Meissner <marcus@jet.franken.de> | 2023-04-24 11:03:11 +0200 |
commit | 893122bf80c57ccaff77a9641a330f44d2e5b86a (patch) | |
tree | 4303eaa45a79fba78f316c55cb07917dc8340aae | |
parent | 53a4b75d3ccb9f6f41bed217e30a07ddf04d439c (diff) | |
download | libgphoto2-893122bf80c57ccaff77a9641a330f44d2e5b86a.tar.gz |
synthesize a capturecomplete event for panasonic cameras, as they dont send on on their own
-rw-r--r-- | camlibs/ptp2/library.c | 5 |
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; |