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:
jp9000 2022-07-25 12:07:03 -07:00
commit 5efb3ea42d
2 changed files with 5 additions and 1 deletions

View file

@ -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;
/* ========================================================================= */