vapoursynth: Make loading error messages a bit more helpful
This commit is contained in:
parent
263c2b9189
commit
b2ee8ac036
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue