svn path=/trunk/kdenlive/; revision=6007
}
}
+// 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));
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:
// 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);
}
}
}