cec: don't just set the server version, but get the full configuration in CECInitialise()
authorLars Op den Kamp <lars@opdenkamp.eu>
Thu, 26 Apr 2012 15:40:19 +0000 (17:40 +0200)
committerLars Op den Kamp <lars@opdenkamp.eu>
Thu, 26 Apr 2012 15:40:19 +0000 (17:40 +0200)
src/lib/LibCEC.cpp

index 46decfb866aa8315d66778a531ddbbb30a6c5709..88e93e0dcd07a2d3ae2c366c46d068219b8faa54 100644 (file)
@@ -540,7 +540,7 @@ void * CECInitialise(libcec_configuration *configuration)
 {
   CLibCEC *lib = new CLibCEC(configuration);
   CLibCEC::SetInstance(lib);
-  configuration->serverVersion = LIBCEC_VERSION_CURRENT;
+  lib->GetCurrentConfiguration(configuration);
   return static_cast< void* > (lib);
 }