Merge branch 'vapoursynth' into feature

This commit is contained in:
arch1t3cht 2023-08-15 16:05:01 +02:00
commit 11fece4c03

View file

@ -71,7 +71,7 @@ VapourSynthWrapper::VapourSynthWrapper() {
#endif #endif
if (!hLib) if (!hLib)
throw VapourSynthError("Could not load " VSSCRIPT_SO); throw VapourSynthError("Could not load " VSSCRIPT_SO ". Make sure VapourSynth is installed correctly.");
#ifdef _WIN32 #ifdef _WIN32
FUNC* getVSScriptAPI = (FUNC*)GetProcAddress(hLib, "getVSScriptAPI"); FUNC* getVSScriptAPI = (FUNC*)GetProcAddress(hLib, "getVSScriptAPI");
@ -89,7 +89,7 @@ VapourSynthWrapper::VapourSynthWrapper() {
setlocale(LC_ALL, oldlocale.c_str()); setlocale(LC_ALL, oldlocale.c_str());
if (!scriptapi) if (!scriptapi)
throw VapourSynthError("Failed to get VapourSynth ScriptAPI"); throw VapourSynthError("Failed to get VapourSynth ScriptAPI. Make sure VapourSynth is installed correctly.");
api = scriptapi->getVSAPI(VAPOURSYNTH_API_VERSION); api = scriptapi->getVSAPI(VAPOURSYNTH_API_VERSION);