summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Meissner <marcus@jet.franken.de>2017-03-10 14:42:34 +0100
committerMarcus Meissner <marcus@jet.franken.de>2017-03-10 14:42:34 +0100
commit1a43e1646c0c8bf99ac8878e8f3670dbaec12fef (patch)
treef4ba9f2ebe6f07271e7c93a705409505ae262923
parentc4db6362b35c8c9455452696a8c1537ab1556c5e (diff)
downloadlibgphoto2-1a43e1646c0c8bf99ac8878e8f3670dbaec12fef.tar.gz
move the initial liust folder after the apple hack
https://github.com/gphoto/libgphoto2/issues/132
-rw-r--r--camlibs/ptp2/library.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/camlibs/ptp2/library.c b/camlibs/ptp2/library.c
index 539b740a1..ea5fedca8 100644
--- a/camlibs/ptp2/library.c
+++ b/camlibs/ptp2/library.c
@@ -7960,11 +7960,6 @@ camera_init (Camera *camera, GPContext *context)
}
#endif
- /* avoid doing this on the Sonys DSLRs in control mode, they hang. :( */
-
- if (params->deviceinfo.VendorExtensionID != PTP_VENDOR_SONY)
- ptp_list_folder (params, PTP_HANDLER_SPECIAL, PTP_HANDLER_SPECIAL);
-
/* read the root directory to avoid the "DCIM WRONG ROOT" bugs */
CR (gp_filesystem_set_funcs (camera->fs, &fsfuncs, camera));
@@ -7997,6 +7992,12 @@ camera_init (Camera *camera, GPContext *context)
gp_port_set_timeout (camera->port, timeout);
}
+ /* avoid doing this on the Sonys DSLRs in control mode, they hang. :( */
+
+ if (params->deviceinfo.VendorExtensionID != PTP_VENDOR_SONY)
+ ptp_list_folder (params, PTP_HANDLER_SPECIAL, PTP_HANDLER_SPECIAL);
+
+
{
unsigned int k;