We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 48cf582 + 8334038 commit 0c265c8Copy full SHA for 0c265c8
media/mtp/MtpServer.cpp
@@ -947,7 +947,12 @@ MtpResponseCode MtpServer::doSendObject() {
947
948
if (mSendObjectFileSize - initialData > 0) {
949
mfr.offset = initialData;
950
- mfr.length = mSendObjectFileSize - initialData;
+ if (mSendObjectFileSize == 0xFFFFFFFF) {
951
+ // tell driver to read until it receives a short packet
952
+ mfr.length = 0xFFFFFFFF;
953
+ } else {
954
+ mfr.length = mSendObjectFileSize - initialData;
955
+ }
956
957
LOGV("receiving %s\n", (const char *)mSendObjectFilePath);
958
// transfer the file
0 commit comments