Skip to content

Commit

Permalink
Order matters synthesizing fuji files_added events
Browse files Browse the repository at this point in the history
The fuji shot buffer is senstive to out-of-order deletions, so make sure
that file_added events arrive in the same order as the files in the shot
buffer.
  • Loading branch information
rheimbuch authored and msmeissn committed Nov 9, 2023
1 parent fb1069d commit 1b17626
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion camlibs/ptp2/library.c
Original file line number Diff line number Diff line change
Expand Up @@ -7122,7 +7122,7 @@ camera_wait_for_event (Camera *camera, int timeout,
if (ptp_get_one_event (params, &event))
goto handleregular;
C_PTP (ptp_getobjecthandles (params, PTP_HANDLER_SPECIAL, 0x000000, 0x000000, &handles));
for (i=handles.n;i--;) {
for (i=0;i<handles.n;i++) {
PTPObject *ob;
PTPObjectInfo oi;

Expand Down

0 comments on commit 1b17626

Please sign in to comment.