Darwin: write iso transfer details into correct packets
authorHoi-Ho Chan <hoiho.chan@gmail.com>
Sat, 24 Jul 2010 19:48:00 +0000 (13:48 -0600)
committerDaniel Drake <dan@reactivated.net>
Sat, 24 Jul 2010 19:48:00 +0000 (13:48 -0600)
libusb/os/darwin_usb.c

index 292e79c..6adcb27 100644 (file)
@@ -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;
       }