X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fmltdevicecapture.cpp;h=64edbd782f4b57805beea88d1f04cd863b272855;hb=02d7ae3c388604c701b83c233a3c8d34bf1ae723;hp=629ed5175941dc723e5dfad2f473a29058832dfc;hpb=e692395e685251de32144abfdf85b6c57319c41b;p=kdenlive diff --git a/src/mltdevicecapture.cpp b/src/mltdevicecapture.cpp index 629ed517..64edbd78 100644 --- a/src/mltdevicecapture.cpp +++ b/src/mltdevicecapture.cpp @@ -33,6 +33,7 @@ #include #include #include +#include #include #include @@ -91,7 +92,8 @@ MltDeviceCapture::MltDeviceCapture(QString profile, VideoSurface *surface, QWidg { m_captureDisplayWidget = surface; analyseAudio = KdenliveSettings::monitor_audio(); - if (profile.isEmpty()) profile = KdenliveSettings::current_profile(); + if (profile.isEmpty()) + profile = KdenliveSettings::current_profile(); buildConsumer(profile); connect(this, SIGNAL(unblockPreview()), this, SLOT(slotPreparePreview())); m_droppedFramesTimer.setSingleShot(false); @@ -457,7 +459,7 @@ bool MltDeviceCapture::slotStartCapture(const QString ¶ms, const QString &pa QStringList paramList = params.split(' ', QString::SkipEmptyParts); char *tmp2; - for (int i = 0; i < paramList.count(); i++) { + for (int i = 0; i < paramList.count(); ++i) { tmp = qstrdup(paramList.at(i).section('=', 0, 0).toUtf8().constData()); QString value = paramList.at(i).section('=', 1, 1); if (value == "%threads") value = QString::number(QThread::idealThreadCount()); @@ -771,3 +773,5 @@ void MltDeviceCapture::slotAllowPreview() } + +#include "mltdevicecapture.moc"