summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Meissner <marcus@jet.franken.de>2017-03-10 17:02:11 +0100
committerMarcus Meissner <marcus@jet.franken.de>2017-03-10 17:02:11 +0100
commit78c66ce7e75283c1494e76a0fc67536c3e8ea43b (patch)
tree4f9f90d5107aecb7b2f4e2a34d8814c06aa6f13c
parent1a43e1646c0c8bf99ac8878e8f3670dbaec12fef (diff)
downloadlibgphoto2-78c66ce7e75283c1494e76a0fc67536c3e8ea43b.tar.gz
one more fix to try to fix the iphone initial issue
https://github.com/gphoto/libgphoto2/issues/132
-rw-r--r--camlibs/ptp2/ptp.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/camlibs/ptp2/ptp.c b/camlibs/ptp2/ptp.c
index 8a4b6d0e3..48eb005ee 100644
--- a/camlibs/ptp2/ptp.c
+++ b/camlibs/ptp2/ptp.c
@@ -2290,22 +2290,7 @@ ptp_wait_event (PTPParams *params)
ptp_debug (params, "event: nparams=0x%X, code=0x%X, trans_id=0x%X, p1=0x%X, p2=0x%X, p3=0x%X", event.Nparam,event.Code,event.Transaction_ID, event.Param1, event.Param2, event.Param3);
ptp_add_event (params, &event);
- /* handle some PTP stack internal events */
- switch (event.Code) {
- case PTP_EC_DevicePropChanged: {
- unsigned int i;
-
- /* mark the property for a forced refresh on the next query */
- for (i=0;i<params->nrofdeviceproperties;i++)
- if (params->deviceproperties[i].desc.DevicePropertyCode == event.Param1) {
- params->deviceproperties[i].timestamp = 0;
- break;
- }
- break;
- }
- default: /* check if we should handle it internally too */
- break;
- }
+ handle_event_internal (params, &event);
}
if (ret == PTP_ERROR_TIMEOUT) /* ok, just new events */
ret = PTP_RC_OK;