Commit 314b0fd9 authored by Till Theato's avatar Till Theato
Browse files

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
parent 715c1fea
......@@ -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"));
......
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