Commit d02863d2 authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle

Fix clip duration incorrectly reset on profile change. Fixes #360

parent 56536237
Pipeline #8191 passed with stage
in 16 minutes and 52 seconds
......@@ -3131,8 +3131,10 @@ void Bin::reloadAllProducers()
// Make sure we reload clip length
xml.removeAttribute(QStringLiteral("out"));
Xml::removeXmlProperty(xml, QStringLiteral("length"));
clip->resetProducerProperty(QStringLiteral("kdenlive:duration"));
clip->resetProducerProperty(QStringLiteral("length"));
if (clip->isValid()) {
clip->resetProducerProperty(QStringLiteral("kdenlive:duration"));
clip->resetProducerProperty(QStringLiteral("length"));
}
if (!xml.isNull()) {
clip->setClipStatus(AbstractProjectItem::StatusWaiting);
clip->discardAudioThumb();
......
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