From 12985d7493535ee9ed4e2e035a16766c8e3d2672 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Tue, 22 Sep 2015 11:28:42 -0700 Subject: [PATCH] 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. --- plugins/win-mf/mf-plugin.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/plugins/win-mf/mf-plugin.cpp b/plugins/win-mf/mf-plugin.cpp index e36b25b2e..b686d8402 100644 --- a/plugins/win-mf/mf-plugin.cpp +++ b/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()