]> git.sesse.net Git - kdenlive/commitdiff
Also check for MLT's SDL module at first run
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Thu, 25 Sep 2008 11:51:34 +0000 (11:51 +0000)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Thu, 25 Sep 2008 11:51:34 +0000 (11:51 +0000)
svn path=/branches/KDE4/; revision=2410

src/wizard.cpp

index 014d5358277cfe0e4631de6d9d2a8aec5419b29b..08eb90c3d12346a0a3e5e6d2dec597a0a8469244 100644 (file)
@@ -205,6 +205,16 @@ void Wizard::slotCheckMlt() {
     QByteArray result = checkProcess.readAllStandardError();
     if (!result.contains("avformat")) errorMessage.append(i18n("MLT's avformat (FFMPEG) module not found. Please check your FFMPEG and MLT install. Kdenlive will not work until this issue is fixed.\n"));
 
+    QProcess checkProcess2;
+    checkProcess2.start(KdenliveSettings::rendererpath(), QStringList() << "-query" << "consumer");
+    if (!checkProcess2.waitForStarted())
+        errorMessage.append("Error starting MLT's command line player (inigo).\n");
+
+    checkProcess2.waitForFinished();
+
+    result = checkProcess2.readAllStandardError();
+    if (!result.contains("sdl") || !result.contains("sdl_preview")) errorMessage.append(i18n("MLT's SDL module not found. Please check your MLT install. Kdenlive will not work until this issue is fixed.\n"));
+
     if (!errorMessage.isEmpty()) {
         QLabel *pix = new QLabel();
         pix->setPixmap(KIcon("process-stop").pixmap(30));