From: <mar...@us...> - 2008-08-17 19:55:24
|
Revision: 11282 http://gphoto.svn.sourceforge.net/gphoto/?rev=11282&view=rev Author: marcusmeissner Date: 2008-08-17 19:55:32 +0000 (Sun, 17 Aug 2008) Log Message: ----------- also save data from split header devices Modified Paths: -------------- trunk/libgphoto2/camlibs/ptp2/usb.c Modified: trunk/libgphoto2/camlibs/ptp2/usb.c =================================================================== --- trunk/libgphoto2/camlibs/ptp2/usb.c 2008-08-17 19:53:31 UTC (rev 11281) +++ trunk/libgphoto2/camlibs/ptp2/usb.c 2008-08-17 19:55:32 UTC (rev 11282) @@ -290,6 +290,11 @@ if (usbdata.length == 0xffffffffU) { unsigned char *data = malloc (PTP_USB_BULK_HS_MAX_PACKET_LEN_READ); if (!data) return PTP_RC_GeneralError; + /* Copy first part of data to 'data' */ + handler->putfunc( + params, handler->private, rlen - PTP_USB_BULK_HDR_LEN, usbdata.payload.data, + &written + ); /* stuff data directly to passed data handler */ while (1) { unsigned long written; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |