diff options
author | Hans de Goede <hdegoede@redhat.com> | 2011-06-08 12:42:32 +0200 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2011-06-08 12:42:32 +0200 |
commit | 69b7dc82b5b5310e907628a7957e76df1f6335f3 (patch) | |
tree | 0443e04e0761d907cc19a3096d12aa963914f357 /usbredirhost/usbredirhost.h | |
parent | 7cf1ee98e9b9e10d641bf76bf4334a66eb3aa7b3 (diff) |
Silence cancel urb errors during iso stream cancel
When cancelling an active iso stream some iso packets will likely complete
while we are cancelling, but we will see them as uncomplete as long as we've
not asked libusb to check for complete transfers, this is inherently racy and
there is nothing we can do. Thus we will sometimes try to cancel already
completed transfers which will fail.
This is not a problem, but libusb spews ugly error messages to stderr when
this happens. This patch silences these error messages.
Diffstat (limited to 'usbredirhost/usbredirhost.h')
-rw-r--r-- | usbredirhost/usbredirhost.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usbredirhost/usbredirhost.h b/usbredirhost/usbredirhost.h index 6644311..a98072c 100644 --- a/usbredirhost/usbredirhost.h +++ b/usbredirhost/usbredirhost.h @@ -49,7 +49,9 @@ struct usbredirhost; thread has its own libusb_context. IOW usbredirhost does not use static or global variables. */ -struct usbredirhost *usbredirhost_open(libusb_device_handle *usb_dev_handle, +struct usbredirhost *usbredirhost_open( + libusb_context *usb_ctx, + libusb_device_handle *usb_dev_handle, usbredirparser_log log_func, usbredirparser_read read_guest_data_func, usbredirparser_write write_guest_data_func, |