cleanup: fix deprecated form of QProcess::start

You are now required to always provide a list of arguments.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2020-10-25 14:29:46 -07:00
parent f871b8dfac
commit 87563eb404

View file

@ -34,7 +34,7 @@ void PreferencesMedia::checkFfmpegExecutable()
// Try to execute ffmpeg. But wait at most 2 sec for startup and execution // Try to execute ffmpeg. But wait at most 2 sec for startup and execution
// so that the UI doesn't hang unnecessarily. // so that the UI doesn't hang unnecessarily.
QProcess ffmpeg; QProcess ffmpeg;
ffmpeg.start(s); ffmpeg.start(s, QStringList());
if (!ffmpeg.waitForStarted(2000) || !ffmpeg.waitForFinished(3000)) if (!ffmpeg.waitForStarted(2000) || !ffmpeg.waitForFinished(3000))
QMessageBox::warning(this, tr("Warning"), tr("Couldn't execute ffmpeg at given location. Thumbnailing will not work.")); QMessageBox::warning(this, tr("Warning"), tr("Couldn't execute ffmpeg at given location. Thumbnailing will not work."));
} }