summaryrefslogtreecommitdiff
path: root/libusb/os
diff options
context:
space:
mode:
authorHoi-Ho Chan <hoiho.chan@gmail.com>2010-07-24 13:48:00 -0600
committerPete Batard <pbatard@gmail.com>2010-07-29 11:25:11 +0100
commit8f014a89fba27091698d55cab206e9325655efbc (patch)
tree61030d4691818c221d9014ad8b06acaff7adc177 /libusb/os
parent82cb50a5abba7dc0b80a21985d2aeb5ba6a3ed9c (diff)
downloadlibusb-8f014a89fba27091698d55cab206e9325655efbc.tar.gz
Darwin: write iso transfer details into correct packets
Diffstat (limited to 'libusb/os')
-rw-r--r--libusb/os/darwin_usb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libusb/os/darwin_usb.c b/libusb/os/darwin_usb.c
index 292e79c..6adcb27 100644
--- a/libusb/os/darwin_usb.c
+++ b/libusb/os/darwin_usb.c
@@ -1376,7 +1376,7 @@ static void darwin_handle_callback (struct usbi_transfer *itransfer, kern_return
/* copy isochronous results back */
for (i = 0; i < transfer->num_iso_packets ; i++) {
- struct libusb_iso_packet_descriptor *lib_desc = transfer->iso_packet_desc;
+ struct libusb_iso_packet_descriptor *lib_desc = &transfer->iso_packet_desc[i];
lib_desc->status = darwin_to_libusb (tpriv->isoc_framelist[i].frStatus);
lib_desc->actual_length = tpriv->isoc_framelist[i].frActCount;
}