From f7454622eaac287d20ab43013d7015fe42b894f8 Mon Sep 17 00:00:00 2001 From: Mike Lockwood Date: Thu, 9 Dec 2010 18:34:18 -0800 Subject: 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 --- media/mtp/MtpDevice.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'media/mtp/MtpDevice.h') 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; -- cgit v1.1