1
0
Fork 0

vapoursynth: Only set loaded when fully initialized

This commit is contained in:
arch1t3cht 2023-01-13 23:52:27 +01:00
parent 3b02a199f0
commit 0d0ed49546
1 changed files with 2 additions and 1 deletions

View File

@ -56,7 +56,6 @@ typedef VSSCRIPTAPI* VS_CC FUNC(int);
VapourSynthWrapper::VapourSynthWrapper() {
// VSScript assumes it's only loaded once, so unlike AVS we can't unload it when the refcount reaches zero
if (!vs_loaded) {
vs_loaded = true;
#ifdef _WIN32
#define CONCATENATE(x, y) x ## y
#define _Lstr(x) CONCATENATE(L, x)
@ -92,6 +91,8 @@ VapourSynthWrapper::VapourSynthWrapper() {
if (!api)
throw VapoursynthError("Failed to get Vapoursynth API");
vs_loaded = true;
}
}