mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-15 07:44:10 +00:00
UI: Add support for real-time work queue
This commit is contained in:
parent
d1230c292e
commit
86b607154a
|
@ -2689,6 +2689,14 @@ int main(int argc, char *argv[])
|
|||
SetErrorMode(SEM_FAILCRITICALERRORS);
|
||||
load_debug_privilege();
|
||||
base_set_crash_handler(main_crash_handler, nullptr);
|
||||
|
||||
const HMODULE hRtwq = LoadLibrary(L"RTWorkQ.dll");
|
||||
if (hRtwq) {
|
||||
typedef HRESULT(STDAPICALLTYPE * PFN_RtwqStartup)();
|
||||
PFN_RtwqStartup func =
|
||||
(PFN_RtwqStartup)GetProcAddress(hRtwq, "RtwqStartup");
|
||||
func();
|
||||
}
|
||||
#endif
|
||||
|
||||
base_get_log_handler(&def_log_handler, nullptr);
|
||||
|
@ -2828,6 +2836,16 @@ int main(int argc, char *argv[])
|
|||
curl_global_init(CURL_GLOBAL_ALL);
|
||||
int ret = run_program(logFile, argc, argv);
|
||||
|
||||
#ifdef _WIN32
|
||||
if (hRtwq) {
|
||||
typedef HRESULT(STDAPICALLTYPE * PFN_RtwqShutdown)();
|
||||
PFN_RtwqShutdown func =
|
||||
(PFN_RtwqShutdown)GetProcAddress(hRtwq, "RtwqShutdown");
|
||||
func();
|
||||
FreeLibrary(hRtwq);
|
||||
}
|
||||
#endif
|
||||
|
||||
blog(LOG_INFO, "Number of memory leaks: %ld", bnum_allocs());
|
||||
base_set_log_handler(nullptr, nullptr);
|
||||
return ret;
|
||||
|
|
Loading…
Reference in a new issue