summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcus Meissner <marcus@jet.franken.de>2021-11-07 17:28:26 +0100
committerMarcus Meissner <marcus@jet.franken.de>2021-11-07 17:28:26 +0100
commit9e0efee77b50047f8542b47593e2ca5b73decada (patch)
tree691242d689e7500281569642ffc280dc53ea3b96
parent3b52c7a967f9819651936b98ccda7f8ff964ebe7 (diff)
downloadlibgphoto2-9e0efee77b50047f8542b47593e2ca5b73decada.tar.gz
handle motorola as MTP... fixes https://github.com/gphoto/gphoto2/issues/463
-rw-r--r--camlibs/ptp2/library.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/camlibs/ptp2/library.c b/camlibs/ptp2/library.c
index 71c35aef8..436ba538e 100644
--- a/camlibs/ptp2/library.c
+++ b/camlibs/ptp2/library.c
@@ -2898,6 +2898,9 @@ is_mtp_capable(Camera *camera) {
PTPParams *params = &camera->pl->params;
if (params->deviceinfo.VendorExtensionID == PTP_VENDOR_MICROSOFT)
return 1;
+ /* these are also lowercase. */
+ if (params->deviceinfo.Manufacturer && !strcmp(params->deviceinfo.Manufacturer,"motorola"))
+ return 1;
/*
if (camera->pl->bugs & PTP_MTP)
return 1;