Commit e0169705 authored by Maarten Lankhorst's avatar Maarten Lankhorst Committed by Alexandre Julliard

winegstreamer: Prevent gstreamer from being unloaded.

parent 2b016601
......@@ -261,6 +261,15 @@ DWORD Gstreamer_init(void) {
FIXME("Failed to initialize gstreamer: %s\n", err->message);
g_error_free(err);
}
if (inited) {
HINSTANCE newhandle;
/* Unloading glib is a bad idea.. it installs atexit handlers,
* so never unload the dll after loading */
GetModuleHandleExW(GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS,
(LPCWSTR)hInst, &newhandle);
if (!newhandle)
ERR("Could not pin module %p\n", hInst);
}
}
return inited;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment