virtualcam-module: Only allow DLL unload when filter freed
Fixes a bug where the DLL could unload while the filter is currently being destroyed, which would cause a crash in the host process
This commit is contained in:
parent
ef9c99f5f4
commit
5efb3ea42d
2 changed files with 5 additions and 1 deletions
|
|
@ -11,7 +11,7 @@ static const REGFILTERPINS AMSPinVideo = {L"Output", false, true,
|
|||
nullptr, 1, &AMSMediaTypesV};
|
||||
|
||||
HINSTANCE dll_inst = nullptr;
|
||||
static volatile long locks = 0;
|
||||
volatile long locks = 0;
|
||||
|
||||
/* ========================================================================= */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue