0
0
mirror of https://github.com/obsproject/obs-studio.git synced 2024-09-20 21:13:04 +02:00
obs-studio/plugins/win-mf/mf-plugin.cpp
jp9000 12985d7493 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.
2015-09-22 11:30:39 -07:00

27 lines
446 B
C++

#include <obs-module.h>
#include <util/profiler.h>
#include "mf-common.hpp"
extern "C" extern void RegisterMFAACEncoder();
extern void RegisterMFH264Encoders();
extern "C" bool obs_module_load(void)
{
MFStartup(MF_VERSION, MFSTARTUP_FULL);
RegisterMFAACEncoder();
RegisterMFH264Encoders();
return true;
}
extern "C" void obs_module_unload(void)
{
MFShutdown();
}
OBS_DECLARE_MODULE()
OBS_MODULE_USE_DEFAULT_LOCALE("win-mf", "en-US")