From: Dan Dennedy Date: Sat, 16 Jul 2011 18:09:57 +0000 (+0000) Subject: Limit MLT processing threads to 3. X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=75051894798b16801af81dd7831e49a7f643073b;p=kdenlive Limit MLT processing threads to 3. svn path=/trunk/kdenlive/; revision=5796 --- diff --git a/src/kdenlivesettingsdialog.cpp b/src/kdenlivesettingsdialog.cpp index b13a82be..53c43c6e 100644 --- a/src/kdenlivesettingsdialog.cpp +++ b/src/kdenlivesettingsdialog.cpp @@ -83,7 +83,7 @@ KdenliveSettingsDialog::KdenliveSettingsDialog(const QMap& map m_configEnv.mltpathurl->setMode(KFile::Directory); m_configEnv.mltpathurl->lineEdit()->setObjectName("kcfg_mltpath"); m_configEnv.rendererpathurl->lineEdit()->setObjectName("kcfg_rendererpath"); - m_configEnv.kcfg_mltthreads->setMaximum(QThread::idealThreadCount()); + m_configEnv.kcfg_mltthreads->setMaximum( QThread::idealThreadCount() < 4 ? QThread::idealThreadCount() : 3 ); m_configEnv.tmppathurl->setMode(KFile::Directory); m_configEnv.tmppathurl->lineEdit()->setObjectName("kcfg_currenttmpfolder"); m_configEnv.projecturl->setMode(KFile::Directory);