Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
Kdenlive
Commits
dc8e6134
Commit
dc8e6134
authored
Feb 15, 2020
by
Jean-Baptiste Mardelle
Browse files
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
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/timeline2/view/dialogs/speeddialog.cpp
View file @
dc8e6134
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment