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.
This commit is contained in:
jp9000
2015-09-22 11:28:42 -07:00
parent 088debdef4
commit 12985d7493

View File

@@ -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()