mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-09-20 21:13:04 +02:00
win-dshow: Don't call DisableThreadLibraryCalls in virtualcam
Per MSDN: Do not call this function from a DLL that is linked to the static C run-time library (CRT). The static CRT requires DLL_THREAD_ATTACH and DLL_THREAD_DETATCH notifications to function properly.
This commit is contained in:
parent
f316762a2a
commit
5c8587eab3
@ -287,7 +287,6 @@ void logcallback(DShow::LogType, const wchar_t *msg, void *)
|
||||
BOOL WINAPI DllMain(HINSTANCE inst, DWORD reason, LPVOID)
|
||||
{
|
||||
if (reason == DLL_PROCESS_ATTACH) {
|
||||
DisableThreadLibraryCalls(inst);
|
||||
#ifdef ENABLE_LOGGING
|
||||
DShow::SetLogCallback(logcallback, nullptr);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user