vapoursynth: Check if registry key or value exists

This commit is contained in:
Biswapriyo Nath
2023-10-31 05:59:59 +00:00
parent 07124591c4
commit aeef3fc84b
2 changed files with 17 additions and 3 deletions

View File

@@ -0,0 +1,11 @@
--- a/src/core/vscore.cpp
+++ b/src/core/vscore.cpp
@@ -1862,7 +1862,7 @@
// Autoload bundled plugins
std::wstring corePluginPath = readRegistryValue(VS_INSTALL_REGKEY, L"CorePlugins");
- if (!loadAllPluginsInPath(corePluginPath, filter))
+ if (!corePluginPath.empty() && !loadAllPluginsInPath(corePluginPath, filter))
logMessage(mtCritical, "Core plugin autoloading failed. Installation is broken!");
if (!disableAutoLoading) {

View File

@@ -24,11 +24,13 @@ makedepends=("${MINGW_PACKAGE_PREFIX}-cc"
source=("vapoursynth-${pkgver}.tar.gz::https://github.com/vapoursynth/vapoursynth/archive/R${pkgver}.tar.gz"
"0001-wrong-arguments-to-Mem32-constructor.patch"
"0002-prevent-portable-python.patch"
"0003-no-registry-setup-py.patch")
"0003-no-registry-setup-py.patch"
"0004-vapoursynth-check-empty-registry.patch")
sha256sums=('2bde5233b82d914b5e985119ed9cc344e3c27c3c068b5c4ab909176cd1751dce'
'085331d7c81da760b66864ec34647094384514689e7ea9895e7bd34ed9ce9831'
'bc75208eb672446a23535455040d0f5a7e49e19e8276773dd9bc30ee87da2e27'
'a406e46147de0bccbd7353c26a9620a21524376e408131a346ce47df9985b946')
'a406e46147de0bccbd7353c26a9620a21524376e408131a346ce47df9985b946'
'b2fac3089dfb73dfb8baf5bf398831e54da498314dae1f399129c41a6b41bda1')
_apply_patch_with_msg() {
for _patch in "$@"
@@ -47,7 +49,8 @@ prepare() {
_apply_patch_with_msg \
0001-wrong-arguments-to-Mem32-constructor.patch \
0002-prevent-portable-python.patch \
0003-no-registry-setup-py.patch
0003-no-registry-setup-py.patch \
0004-vapoursynth-check-empty-registry.patch
autoreconf -vfi
}