[cec] use client version 'current' now that libCEC 2.1.0 is being used. also fixes...
authorLars Op den Kamp <lars@opdenkamp.eu>
Thu, 7 Mar 2013 09:48:08 +0000 (10:48 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Thu, 7 Mar 2013 13:43:21 +0000 (14:43 +0100)
xbmc/peripherals/devices/PeripheralCecAdapter.cpp

index dd98b3a..56a096f 100644 (file)
@@ -44,7 +44,7 @@ using namespace ANNOUNCEMENT;
 using namespace CEC;
 using namespace std;
 
-#define CEC_LIB_SUPPORTED_VERSION 0x2000
+#define CEC_LIB_SUPPORTED_VERSION 0x2100
 
 /* time in seconds to ignore standby commands from devices after the screensaver has been activated */
 #define SCREENSAVER_TIMEOUT       10
@@ -1340,8 +1340,8 @@ void CPeripheralCecAdapter::SetConfigurationFromLibCEC(const CEC::libcec_configu
 
 void CPeripheralCecAdapter::SetConfigurationFromSettings(void)
 {
-  // client version 2.0.0
-  m_configuration.clientVersion = CEC_CLIENT_VERSION_2_0_0;
+  // use the same client version as libCEC version
+  m_configuration.clientVersion = CEC_CLIENT_VERSION_CURRENT;
 
   // device name 'XBMC'
   snprintf(m_configuration.strDeviceName, 13, "%s", GetSettingString("device_name").c_str());