cec: don't override callback methods in the new LibCecSharp constructor
authorLars Op den Kamp <lars@opdenkamp.eu>
Fri, 10 Feb 2012 11:44:34 +0000 (12:44 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Fri, 10 Feb 2012 11:44:34 +0000 (12:44 +0100)
src/LibCecSharp/LibCecSharp.cpp

index 0f9acb12c66f4df9327ab5273c738b3462bcd391..6cdc6ab0a72b14e2cafb86215bef5094ec222f23 100644 (file)
@@ -46,7 +46,7 @@ namespace CecSharp
          LibCecSharp(LibCECConfiguration ^config)
                {
                        m_configuration = config;
-                       m_configuration->SetCallbacks(this);
+                       CecCallbackMethods::EnableCallbacks(m_configuration->Callbacks);
                        if (!InitialiseLibCec())
                                throw gcnew Exception("Could not initialise LibCecSharp");
                }