summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Meissner <marcus@jet.franken.de>2020-10-03 11:06:29 +0200
committerMarcus Meissner <marcus@jet.franken.de>2020-10-03 11:06:29 +0200
commit031e3a1a4b1adbd42dbcc5f74e9089c92f1006c3 (patch)
tree695eda4e083879ed9a271d960766154fd2645aaf
parent81bd46a713e2c32f53cbdeb3e6d6fc2e3390e20b (diff)
downloadlibgphoto2-031e3a1a4b1adbd42dbcc5f74e9089c92f1006c3.tar.gz
handle error in a otherwise potential endless loop
-rw-r--r--camlibs/ptp2/library.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/camlibs/ptp2/library.c b/camlibs/ptp2/library.c
index 47e8063b5..57b2b568a 100644
--- a/camlibs/ptp2/library.c
+++ b/camlibs/ptp2/library.c
@@ -4924,7 +4924,7 @@ camera_fuji_capture (Camera *camera, CameraCaptureType type, CameraFilePath *pat
/* poll camera until it is ready */
propval.u16 = 0x0001;
while (propval.u16 == 0x0001) {
- ptp_getdevicepropvalue (params, 0xd209, &propval, PTP_DTC_UINT16);
+ C_PTP (ptp_getdevicepropvalue (params, 0xd209, &propval, PTP_DTC_UINT16));
GP_LOG_D ("XXX Ready to shoot? %X", propval.u16);
}