]> git.sesse.net Git - kdenlive/blobdiff - src/renderer.cpp
Fix slideshow clip ending after 15000 frames and not possible to set image, color...
[kdenlive] / src / renderer.cpp
index 07c2e98cea472828661ed3ec5ef02edfffdc1224..ce99e4c85d5c2ef8f20965b89cea7e5de0aedba9 100644 (file)
@@ -676,6 +676,11 @@ void Render::getFileProperties(const QDomElement xml, const QString &clipId, int
         if (aindex != 0) producer->set("audio_index", aindex);
     }
 
+    // setup length here as otherwise default length (currently 15000 frames in MLT) will be taken although outpoint is larger
+    if (xml.attribute("type").toInt() == COLOR || xml.attribute("type").toInt() == TEXT
+        || xml.attribute("type").toInt() == IMAGE || xml.attribute("type").toInt() == SLIDESHOW)
+        producer->set("length", xml.attribute("out").toInt() - xml.attribute("in").toInt() + 1);
+
     if (xml.hasAttribute("out")) producer->set_in_and_out(xml.attribute("in").toInt(), xml.attribute("out").toInt());
 
     char *tmp = decodedString(clipId);