summaryrefslogtreecommitdiffstats
path: root/media/mtp/MtpDevice.h
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@android.com>2010-12-09 18:34:18 -0800
committerMike Lockwood <lockwood@android.com>2010-12-09 18:34:18 -0800
commitf7454622eaac287d20ab43013d7015fe42b894f8 (patch)
tree1bbc63dbaf849ed5226194e933f2de3c9bdb22e0 /media/mtp/MtpDevice.h
parent424c6cbfa75da5f4f889ab6517dfee4dd024ba2d (diff)
downloadframeworks_av-f7454622eaac287d20ab43013d7015fe42b894f8.zip
frameworks_av-f7454622eaac287d20ab43013d7015fe42b894f8.tar.gz
frameworks_av-f7454622eaac287d20ab43013d7015fe42b894f8.tar.bz2
MTP host: Handle receiving a response packet instead of data packet.
This will happen if the device needs to report an error rather than returning the data. Change-Id: I477512b3676c2f0518a85a4135832ed4475fbc2d Signed-off-by: Mike Lockwood <lockwood@android.com>
Diffstat (limited to 'media/mtp/MtpDevice.h')
-rw-r--r--media/mtp/MtpDevice.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/media/mtp/MtpDevice.h b/media/mtp/MtpDevice.h
index 6ffbd24..67bb85f 100644
--- a/media/mtp/MtpDevice.h
+++ b/media/mtp/MtpDevice.h
@@ -53,6 +53,8 @@ private:
MtpRequestPacket mRequest;
MtpDataPacket mData;
MtpResponsePacket mResponse;
+ // set to true if we received a response packet instead of a data packet
+ bool mReceivedResponse;
// to ensure only one MTP transaction at a time
Mutex mMutex;