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
ce065b3c
Commit
ce065b3c
authored
Mar 18, 2020
by
Jean-Baptiste Mardelle
Browse files
Play forward button should always start with >1 speed
parent
81a863f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/monitor/monitor.cpp
View file @
ce065b3c
...
...
@@ -1187,18 +1187,16 @@ void Monitor::slotForward(double speed)
if
(
qFuzzyIsNull
(
speed
))
{
double
currentspeed
=
m_glMonitor
->
playSpeed
();
if
(
currentspeed
<
1
)
{
m_glMonitor
->
purgeCache
();
speed
=
1
;
resetSpeedInfo
();
m_speedIndex
=
0
;
}
else
{
m_speedIndex
++
;
if
(
m_speedIndex
>
4
)
{
m_speedIndex
=
0
;
}
speed
=
MonitorManager
::
speedArray
[
m_speedIndex
];
m_speedLabel
->
setFixedWidth
(
QWIDGETSIZE_MAX
);
m_speedLabel
->
setText
(
QString
(
"x%1"
).
arg
(
speed
));
}
if
(
m_speedIndex
>
4
)
{
m_speedIndex
=
0
;
}
speed
=
MonitorManager
::
speedArray
[
m_speedIndex
];
m_speedLabel
->
setFixedWidth
(
QWIDGETSIZE_MAX
);
m_speedLabel
->
setText
(
QString
(
"x%1"
).
arg
(
speed
));
}
m_playAction
->
setActive
(
true
);
m_glMonitor
->
switchPlay
(
true
,
speed
);
...
...
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