Skip to content

Instantly share code, notes, and snippets.

@jeffgriffin
Created March 15, 2013 03:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jeffgriffin/5167319 to your computer and use it in GitHub Desktop.
Save jeffgriffin/5167319 to your computer and use it in GitHub Desktop.
+diff -Naur a/xbmc/input/linux/LinuxInputDevices.cpp b/xbmc/input/linux/LinuxInputDevices.cpp
+--- a/xbmc/input/linux/LinuxInputDevices.cpp 2013-02-26 06:14:43.000000000 -0500
++++ b/xbmc/input/linux/LinuxInputDevices.cpp 2013-03-04 14:12:57.987335260 -0500
+@@ -1066,6 +1066,13 @@
+ /* fill device info structure */
+ GetInfo(fd);
+
++ if (m_deviceType==LI_DEVICE_NONE)
++ {
++ CLog::Log(LOGERROR, "CLinuxInputDevice %s: Unknown device type.", m_deviceName);
++ close(fd);
++ return false;
++ }
++
+ if (m_deviceType & LI_DEVICE_KEYBOARD)
+ SetupKeyboardAutoRepeat(fd);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment