summaryrefslogtreecommitdiff
path: root/pcr/xboxdrv/fix-60-sec-delay.patch
diff options
context:
space:
mode:
authorAndreas Grapentin <andreas@grapentin.org>2018-01-23 16:10:37 +0100
committerAndreas Grapentin <andreas@grapentin.org>2018-01-23 16:10:37 +0100
commitb4296b573a8a51ba20db9ed6fbfc2705e69c45ee (patch)
tree28624159ae26de4d0668022c48e9684354c35bad /pcr/xboxdrv/fix-60-sec-delay.patch
parent34a0799025517f28c5fe8ca04713a316a4c3ab7f (diff)
downloadabslibre-b4296b573a8a51ba20db9ed6fbfc2705e69c45ee.tar.gz
abslibre-b4296b573a8a51ba20db9ed6fbfc2705e69c45ee.tar.bz2
abslibre-b4296b573a8a51ba20db9ed6fbfc2705e69c45ee.zip
pcr/xboxdrv: updated to 0.8.8
Diffstat (limited to 'pcr/xboxdrv/fix-60-sec-delay.patch')
-rw-r--r--pcr/xboxdrv/fix-60-sec-delay.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/pcr/xboxdrv/fix-60-sec-delay.patch b/pcr/xboxdrv/fix-60-sec-delay.patch
new file mode 100644
index 000000000..da543d2cf
--- /dev/null
+++ b/pcr/xboxdrv/fix-60-sec-delay.patch
@@ -0,0 +1,27 @@
+From 7326421eeaadbc2aeb3828628c2e65bb7be323a9 Mon Sep 17 00:00:00 2001
+From: buxit <buti@bux.at>
+Date: Wed, 2 Nov 2016 16:25:14 +0100
+Subject: [PATCH] fix 60 seconds delay
+
+use `libusb_handle_events_timeout_completed()` instead of `libusb_handle_events()`
+should fix #144
+---
+ src/usb_gsource.cpp | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/src/usb_gsource.cpp b/src/usb_gsource.cpp
+index 00bf1315..afb38f65 100644
+--- a/src/usb_gsource.cpp
++++ b/src/usb_gsource.cpp
+@@ -174,7 +174,10 @@ USBGSource::on_source_dispatch(GSource* source, GSourceFunc callback, gpointer u
+ gboolean
+ USBGSource::on_source()
+ {
+- libusb_handle_events(NULL);
++ struct timeval to;
++ to.tv_sec = 0;
++ to.tv_usec = 0;
++ libusb_handle_events_timeout_completed(NULL, &to, NULL);
+ return TRUE;
+ }
+