Просмотр исходного кода

win-mf: Don't call CoInitializeEx

The call to CoInitializeEx in the win-mf module caused some sort of
conflict with the decklink module, causing the decklink module to crash
on exit.  Instead, let libobs handle COM initialization.
jp9000 10 лет назад
Родитель
Сommit
12985d7493
1 измененных файлов с 0 добавлено и 2 удалено
  1. 0 2
      plugins/win-mf/mf-plugin.cpp

+ 0 - 2
plugins/win-mf/mf-plugin.cpp

@@ -9,7 +9,6 @@ extern void RegisterMFH264Encoders();
 
 extern "C" bool obs_module_load(void)
 {
-	CoInitializeEx(0, COINIT_MULTITHREADED);
 	MFStartup(MF_VERSION, MFSTARTUP_FULL);
 
 	RegisterMFAACEncoder();
@@ -21,7 +20,6 @@ extern "C" bool obs_module_load(void)
 extern "C" void obs_module_unload(void)
 {
 	MFShutdown();
-	CoUninitialize();
 }
 
 OBS_DECLARE_MODULE()