Disable pitch compensation if rbpitch filter (rubberband) is not available in MLT

parent 0b6b41bc
Pipeline #15107 passed with stage
in 17 minutes and 42 seconds
......@@ -22,6 +22,8 @@
#include "speeddialog.h"
#include "ui_clipspeed_ui.h"
#include "effects/effectsrepository.hpp"
#include <QPushButton>
#include <QDebug>
#include <KMessageWidget>
......@@ -49,6 +51,10 @@ SpeedDialog::SpeedDialog(QWidget *parent, double speed, double minSpeed, double
ui->speedSpin->setValue(speed);
ui->speedSlider->setValue(qLn(speed) * 12);
ui->pitchCompensate->setChecked(pitch_compensate);
if (!EffectsRepository::get()->exists(QStringLiteral("rbpitch"))) {
ui->pitchCompensate->setEnabled(false);
ui->pitchCompensate->setToolTip(i18n("MLT must be compiled with rubberband library to enable pitch correction"));
}
// Info widget
KMessageWidget *infoMessage = new KMessageWidget(this);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment