From 314b0fd9d4bd3105d2592cc50016a0f3fc5f0228 Mon Sep 17 00:00:00 2001 From: Till Theato Date: Wed, 20 Apr 2011 10:58:18 +0000 Subject: [PATCH] Automatically crop relative to the project resolution on clips using proxies: http://www.kdenlive.org/mantis/view.php?id=2056 svn path=/trunk/kdenlive/; revision=5542 --- src/clipitem.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/clipitem.cpp b/src/clipitem.cpp index 5e1851d3..d7d9819c 100644 --- a/src/clipitem.cpp +++ b/src/clipitem.cpp @@ -248,6 +248,12 @@ void ClipItem::initEffect(QDomElement effect, int diff) } } + if (effect.attribute("id") == "crop") { + // default use_profile to 1 for clips with proxies to avoid problems when rendering + if (e.attribute("name") == "use_profile" && !(m_clip->getProperty("proxy").isEmpty() || m_clip->getProperty("proxy") == "-")) + e.setAttribute("value", "1"); + } + if ((e.attribute("type") == "keyframe" || e.attribute("type") == "simplekeyframe") && e.attribute("keyframes").isEmpty()) { // Effect has a keyframe type parameter, we need to set the values e.setAttribute("keyframes", QString::number(cropStart().frames(m_fps)) + ':' + e.attribute("default")); -- 2.39.2