Menu

#1940 LIBMTP_HANDLER_RETURN_CANCEL

1.1.20
open
nobody
None
1
2024-05-02
2024-05-02
Anonymous
No

Dear developers,

I am running into the following problem:
When I use the function LIBMTP_Get_File_To_Handler
and, from the the handler given as "put_func",
I return LIBMTP_HANDLER_RETURN_CANCEL,
the call to LIBMTP_Get_File_To_Handler never returns.
Eventually, the library writes to stderr:

"PTP: reading event an error 0x02ff occurred"

If I instead return LIBMTP_HANDLER_RETURN_OK,
all works as expected.

Any advice would be welcome,
but it appears to me as if it is a bug in libmtp.

OS: Debian 12.5
Version of libmtp: 1.1.20-1
Device: 18d1:4ee1

Discussion

Anonymous
Anonymous

Add attachments
Cancel