Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Sony regression by removing ptp_is_vendor_extension_prop #1044

Closed
wants to merge 1 commit into from

Conversation

knro
Copy link
Contributor

@knro knro commented Oct 20, 2024

A git bisect reveled that ptp_is_vendor_extension_prop introduced in f5e51fd caused a regression for Sony cameras causing some of them to fail to capture completely.

@msmeissn
Copy link
Contributor

@axxel fyi

@msmeissn msmeissn closed this in b2f2052 Oct 21, 2024
@msmeissn
Copy link
Contributor

I did a different fix, moved the Sony code before the above check, kept the EOS one below it.

Please verify it works.

@axxel
Copy link
Contributor

axxel commented Oct 21, 2024

EDIT: only now did I see that @msmeissn already did something to the same effect as the below patch.

Thanks for bringing this to my attention and sorry for the inconvencience. @knro can you check if the following patch fixes the issue for you?

diff --git a/camlibs/ptp2/ptp.c b/camlibs/ptp2/ptp.c
index e96603409..01ba8a4b4 100644
--- a/camlibs/ptp2/ptp.c
+++ b/camlibs/ptp2/ptp.c
@@ -4616,10 +4616,8 @@ ptp_generic_getdevicepropdesc (PTPParams *params, uint32_t propcode, PTPDevicePr
                ptp_free_devicepropdesc (dpd_in_cache);
        }
 
-       if (!ptp_is_vendor_extension_prop(propcode))
-               goto generic;
-
-       if (    (params->deviceinfo.VendorExtensionID == PTP_VENDOR_CANON) &&
+       if (    ptp_is_vendor_extension_prop(propcode) &&
+               (params->deviceinfo.VendorExtensionID == PTP_VENDOR_CANON) &&
                ptp_operation_issupported(params, PTP_OC_CANON_EOS_RequestDevicePropValue)
        ) {
                PTPDevicePropDesc *eos_dpd = ptp_find_eos_devicepropdesc(params, propcode);

@knro
Copy link
Contributor Author

knro commented Oct 21, 2024 via email

@axxel
Copy link
Contributor

axxel commented Oct 21, 2024

Unfortunately I no longer have access to the Sony camera so cannot test

That is unfortunate. If your PR positively fixed the issue, then I'm confident that @msmeissn's fix did so as well.

@msmeissn
Copy link
Contributor

i tested with a Sony A7 and that had capture working now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants