diff --git a/src/thread_vapoursynth.cpp b/src/thread_vapoursynth.cpp index eeed03d..bbf031e 100644 --- a/src/thread_vapoursynth.cpp +++ b/src/thread_vapoursynth.cpp @@ -239,14 +239,17 @@ void VapourSynthCheckThread::detectVapourSynthPath3(int &success, QString &path) { for (size_t k = 0; k < 3; k++) { - QString temp; - if (MUtils::Registry::reg_value_read(MUtils::Registry::root_machine, QString::fromLatin1(VPS_REG_KEYS[i]), QString::fromLatin1(VPS_REG_NAME[j]), temp, REG_SCOPE[k])) + if (MUtils::Registry::reg_key_exists(MUtils::Registry::root_machine, QString::fromLatin1(VPS_REG_KEYS[i]), REG_SCOPE[k])) { - temp = cleanDir(temp); - if (VALID_DIR(temp)) + QString temp; + if (MUtils::Registry::reg_value_read(MUtils::Registry::root_machine, QString::fromLatin1(VPS_REG_KEYS[i]), QString::fromLatin1(VPS_REG_NAME[j]), temp, REG_SCOPE[k])) { - vapoursynthPath = temp; - break; + temp = cleanDir(temp); + if (VALID_DIR(temp)) + { + vapoursynthPath = temp; + break; + } } } } diff --git a/src/version.h b/src/version.h index bf8c6d7..e63284d 100644 --- a/src/version.h +++ b/src/version.h @@ -26,7 +26,7 @@ #define VER_X264_MAJOR 2 #define VER_X264_MINOR 7 #define VER_X264_PATCH 5 -#define VER_X264_BUILD 1056 +#define VER_X264_BUILD 1058 #define VER_X264_PORTABLE_EDITION (0)