Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix for multiple K4W or 1473 devices needing keep_alive. #384

Merged
merged 1 commit into from
Apr 25, 2014

Conversation

ofTheo
Copy link
Contributor

@ofTheo ofTheo commented Apr 23, 2014

Opening by PID fails when multiple identical devices are on the system ( i.e.: if there are two Kinect 1473 libusb_open_device_with_vid_pid has no way to know which audio device to open.

This PR uses the newer libusb_get_parent and lib_usb_get_bus_number to get the correct audio device for a camera.

PR is backwards compatible with older versions of libusb so it only applies the newer method if libusb >= 1.0.18 is detected. At a later date we can assume 1.0.18 or higher and remove the keep_alive.c files.

Signed-off-by: Theodore Watson theo@openframeworks.cc (ofTheo)

…y PID fails when multiple identical devices are on the system. This PR uses libusb_get_parent and lib_usb_get_bus_number to get the correct audio device for a camera. PR is backwards compatible with older versions of libusb. Signed-off-by: Theodore Watson <theo@openframeworks.cc> (ofTheo)
@piedar piedar added this to the v0.4.2 milestone Apr 23, 2014
piedar added a commit that referenced this pull request Apr 25, 2014
Bugfix for multiple K4W or 1473 devices needing keep_alive.

Reviewed-by: Benn Snyder <benn.snyder@gmail.com>
@piedar piedar merged commit e1d0fcb into OpenKinect:master Apr 25, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants