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
......@@ -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());
}
}
......
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