]> git.sesse.net Git - kdenlive/commitdiff
Fix recent regression: slowmotion clips cannot be moved / copied on project opening
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Fri, 28 Dec 2012 12:02:03 +0000 (13:02 +0100)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Fri, 28 Dec 2012 12:02:03 +0000 (13:02 +0100)
src/clipitem.cpp
src/projectlist.cpp

index 51ae67a9e5c297007df896a6ed5afbf8816530ff..46e2e21b6bc964fd7385ee094e1893583a5d7e81 100644 (file)
@@ -1547,7 +1547,6 @@ EffectsParameterList ClipItem::addEffect(QDomElement effect, bool /*animate*/)
             else if (fadein.attribute("name") == "in") fade -= fadein.attribute("value").toInt();
         }*/
     } else if (effectId == "fade_from_black") {
-       kDebug()<<"// FOUND FTB:"<<effectOut<<" - "<<effectIn;
        needRepaint = true;
         if (m_effectList.hasEffect(QString(), "fadein") == -1) {
            fade = effectOut - effectIn;
index 4a22c0a11ed19354fdcafb9f85f5feeb5dbf58c7..fdba31b31a92af0057b012242acd16669060d90a 100644 (file)
@@ -1594,6 +1594,10 @@ void ProjectList::updateAllClips(bool displayRatioChanged, bool fpsChanged, QStr
                         resetThumbsProducer(clip);
                        m_render->getFileProperties(xml, clip->getId(), m_listView->iconSize().height(), replace);
                     }
+                    else if (item->numReferences() > 0) {
+                       // In some cases, like slowmotion clips, the producer is not loaded automatically be MLT
+                       m_render->getFileProperties(xml, clip->getId(), m_listView->iconSize().height(), replace);
+                   }
                 }
                 else if (clip->isPlaceHolder()) {
                     item->setFlags(Qt::ItemIsSelectable | Qt::ItemIsEnabled | Qt::ItemIsDropEnabled);