Fix rendering when timeline contained proxy clips

svn path=/trunk/kdenlive/; revision=6007
parent 0bb3b5da
......@@ -273,6 +273,19 @@ void EffectsList::removeProperty(QDomElement effect, const QString &name)
}
}
// static
void EffectsList::removeMetaProperties(QDomElement producer)
{
QDomNodeList params = producer.elementsByTagName("property");
for (int i = 0; i < params.count(); i++) {
QDomElement e = params.item(i).toElement();
if (e.attribute("name").startsWith("meta")) {
producer.removeChild(params.item(i));
i--;
}
}
}
void EffectsList::append(QDomElement e)
{
m_baseElement.appendChild(importNode(e, true));
......
......@@ -81,6 +81,8 @@ public:
static QString property(QDomElement effect, const QString &name);
/** @brief Delete a 'property' element from the effect node. */
static void removeProperty(QDomElement effect, const QString &name);
/** @brief Remove all 'meta.*' properties from a producer, used when replacing proxy producers in xml for rendering. */
static void removeMetaProperties(QDomElement producer);
void clearList();
private:
......
......@@ -3967,6 +3967,7 @@ void MainWindow::slotPrepareRendering(bool scriptExport, bool zoneOnly, const QS
// We need to delete the "aspect_ratio" property because proxy clips
// sometimes have different ratio than original clips
EffectsList::removeProperty(e, "aspect_ratio");
EffectsList::removeMetaProperties(e);
}
}
}
......
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