Commit f15ec92e authored by Dmitry Kazakov's avatar Dmitry Kazakov

Fix locating ffmpeg (failed due to a race condition)

We should first wait for the process started, and only after that
for the process to finish. Otherwise, we used to destroy QProcess
before ffmpeg was actually started and making Krita not find it.
parent b74e97f5
......@@ -473,7 +473,9 @@ QString DlgAnimationRenderer::findFFMpeg()
QProcess testProcess;
testProcess.start(path, QStringList() << "-version");
if (testProcess.waitForStarted(1000)) {
const bool successfulStart =
testProcess.state() == QProcess::NotRunning &&
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment