Skip to content
GitLab
Menu
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
9d38c49c
Commit
9d38c49c
authored
Jun 17, 2019
by
Jean-Baptiste Mardelle
Browse files
Fix duplicate clip with speed change on comma locales.
Related to #261
parent
dad10878
Pipeline
#4401
passed with stage
in 20 minutes and 54 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
src/jobs/speedjob.cpp
View file @
9d38c49c
...
...
@@ -61,8 +61,9 @@ void SpeedJob::configureConsumer()
void
SpeedJob
::
configureProducer
()
{
if
(
!
qFuzzyCompare
(
m_speed
,
1.0
))
{
QLocale
locale
;
QString
resource
=
m_producer
->
get
(
"resource"
);
m_producer
=
std
::
make_unique
<
Mlt
::
Producer
>
(
*
m_profile
.
get
(),
"timewarp"
,
QStringLiteral
(
"%1:%2"
).
arg
(
m_speed
).
arg
(
resource
).
toUtf8
().
constData
());
m_producer
=
std
::
make_unique
<
Mlt
::
Producer
>
(
*
m_profile
.
get
(),
"timewarp"
,
QStringLiteral
(
"%1:%2"
).
arg
(
locale
.
toString
(
m_speed
)
)
.
arg
(
resource
).
toUtf8
().
constData
());
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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