+void Wizard::slotCheckMlt() {
+ QString errorMessage;
+ if (KdenliveSettings::rendererpath().isEmpty()) {
+ errorMessage.append(i18n("your MLT installation cannot be found. Install MLT and restart Kdenlive.\n"));
+ }
+ QProcess checkProcess;
+ checkProcess.start(KdenliveSettings::rendererpath(), QStringList() << "-query" << "producer");
+ if (!checkProcess.waitForStarted())
+ errorMessage.append("Error starting MLT's command line player (inigo).\n");
+
+ checkProcess.waitForFinished();
+
+ 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"));
+
+ if (!errorMessage.isEmpty()) {
+ QLabel *pix = new QLabel();
+ pix->setPixmap(KIcon("process-stop").pixmap(30));
+ QLabel *label = new QLabel(errorMessage);
+ label->setWordWrap(true);
+ m_startLayout->addSpacing(40);
+ m_startLayout->addWidget(pix);
+ m_startLayout->addWidget(label);
+ m_systemCheckIsOk = false;
+ button(QWizard::NextButton)->setEnabled(false);
+ } else m_systemCheckIsOk = true;
+}
+
+bool Wizard::isOk() const {
+ return m_systemCheckIsOk;
+}
+