From: Till Theato Date: Sat, 14 Aug 2010 22:10:41 +0000 (+0000) Subject: Fix slideshow clip ending after 15000 frames and not possible to set image, color... X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=2a5b3fb98f98e7679acd50c957003c3723e347a5;p=kdenlive Fix slideshow clip ending after 15000 frames and not possible to set image, color and title clip duration higher than 15000 frames svn path=/trunk/kdenlive/; revision=4719 --- diff --git a/src/renderer.cpp b/src/renderer.cpp index 07c2e98c..ce99e4c8 100644 --- a/src/renderer.cpp +++ b/src/renderer.cpp @@ -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); diff --git a/src/slideshowclip.h b/src/slideshowclip.h index a40546b3..2bd70acb 100644 --- a/src/slideshowclip.h +++ b/src/slideshowclip.h @@ -55,7 +55,7 @@ private slots: void slotUpdateDurationFormat(int ix); void slotGenerateThumbs(); void slotSetPixmap(const KFileItem &fileItem, const QPixmap &pix); - /** @brief Display correct widget depenging on user choice (mimetype or pattern method. */ + /** @brief Display correct widget depenging on user choice (mimetype or pattern method). */ void slotMethodChanged(bool active); private: