X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fwizard.cpp;h=062f13dc143e8ca2f5eaecb5f57de54a1dbea7bd;hb=4274029010fe1c1f4f5a2d4d4b6981fbdb57f490;hp=9b451084be3674ff744aeae5baaf9ffe05789e6a;hpb=8de645e2f5dda3cbdcca1d74841b5853cc1ecd4e;p=kdenlive diff --git a/src/wizard.cpp b/src/wizard.cpp index 9b451084..062f13dc 100644 --- a/src/wizard.cpp +++ b/src/wizard.cpp @@ -415,9 +415,20 @@ void Wizard::slotCheckPrograms() item->setData(1, Qt::UserRole, i18n("Required for webcam capture")); item->setSizeHint(0, itemSize); QString exepath = KStandardDirs::findExe("ffmpeg"); - if (exepath.isEmpty()) item->setIcon(0, m_badIcon); - else if (KStandardDirs::findExe("ffplay").isEmpty()) item->setIcon(0, m_badIcon); - else item->setIcon(0, m_okIcon); + QString playpath = KStandardDirs::findExe("ffplay"); + item->setIcon(0, m_okIcon); + if (exepath.isEmpty()) { + // Check for libav version + exepath = KStandardDirs::findExe("avconv"); + if (exepath.isEmpty()) item->setIcon(0, m_badIcon); + } + if (playpath.isEmpty()) { + // Check for libav version + playpath = KStandardDirs::findExe("avplay"); + if (playpath.isEmpty()) item->setIcon(0, m_badIcon); + } + if (!exepath.isEmpty()) KdenliveSettings::setFfmpegpath(exepath); + if (!playpath.isEmpty()) KdenliveSettings::setFfplaypath(playpath); #ifndef Q_WS_MAC item = new QTreeWidgetItem(m_check.programList, QStringList() << QString() << i18n("recordmydesktop"));