cec: just dlclose()/FreeLibrary() after starting the bootloader
authorLars Op den Kamp <lars@opdenkamp.eu>
Mon, 27 Feb 2012 22:35:00 +0000 (23:35 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Mon, 27 Feb 2012 22:35:00 +0000 (23:35 +0100)
include/cecloader.h

index 1b0be87cad7e9995538c83f1c984bfca2e97f6f1..5d4361d6199034c31b24732f52fe01c7fa137a8c 100644 (file)
@@ -134,7 +134,8 @@ bool LibCecBootloader(const char *strLib = NULL)
     return false;
 
   bool bReturn = LibCecBootloader();
-  UnloadLibCec(static_cast< CEC::ICECAdapter* > g_libCEC);
+  FreeLibrary(g_libCEC);
+  g_libCEC = NULL;
   return bReturn;
 }
 
@@ -267,7 +268,7 @@ bool LibCecBootloader(const char *strLib = NULL)
   }
 
   bool bReturn = LibCecBootloader();
-  UnloadLibCec((CEC::ICECAdapter*)g_libCEC);
+  dlclose(g_libCEC);
   return bReturn;
 }