OSDN Git Service

Fixed detection of "portable" VapourSynth. v2.92
authorlordmulder <mulder2@gmx.de>
Mon, 22 Jul 2019 13:46:29 +0000 (15:46 +0200)
committerlordmulder <mulder2@gmx.de>
Mon, 22 Jul 2019 13:46:29 +0000 (15:46 +0200)
src/thread_vapoursynth.cpp

index fe200d5..3298cdf 100644 (file)
@@ -186,7 +186,7 @@ int VapourSynthCheckThread::threadMain(void)
        //Look for "portable" VapourSynth version
        for (size_t i = 0; i < 2U; i++)
        {
-               const QString vpsPortableDir = QString("%1/extra/VapourSynth-%u").arg(QCoreApplication::applicationDirPath(), VPS_BITNESS(i));
+               const QString vpsPortableDir = QString("%1/extra/VapourSynth-%2").arg(QCoreApplication::applicationDirPath(), QString::number(VPS_BITNESS(i)));
                if (VALID_DIR(vpsPortableDir))
                {
                        const QFileInfo vpsPortableFile = QFileInfo(QString("%1/vspipe.exe").arg(vpsPortableDir));
@@ -197,7 +197,7 @@ int VapourSynthCheckThread::threadMain(void)
                }
        }
 
-       //Read VapourSynth path from registry
+       //Read VapourSynth path from the registry
        if (vapoursynthPath.isEmpty())
        {
                for (size_t i = 0; i < 3U; i++)