From: Jean-Baptiste M. <jb...@kd...> - 2012-09-22 10:36:30
|
Git commit 9e9937aade05f2ada92b0b9f0b6d844f8e4860f8 by Jean-Baptiste Mardelle. Committed on 22/09/2012 at 12:13. Pushed by mardelle into branch 'master'. Make sure we add a tractor when building xml clips M +8 -0 src/renderer.cpp http://commits.kde.org/kdenlive/9e9937aade05f2ada92b0b9f0b6d844f8e4860f8 diff --git a/src/renderer.cpp b/src/renderer.cpp index 3b4a895..df2cce4 100644 --- a/src/renderer.cpp +++ b/src/renderer.cpp @@ -684,12 +684,20 @@ void Render::processFileProperties() if (producer && producer->is_valid() && info.xml.hasAttribute("xmldata")) producer->set("xmldata", info.xml.attribute("xmldata").toUtf8().constData()); } else if (url.isEmpty()) { + //WARNING: when is this case used? Not sure it is working.. JBM/ QDomDocument doc; QDomElement mlt = doc.createElement("mlt"); QDomElement play = doc.createElement("playlist"); + play.setAttribute("id", "playlist0"); doc.appendChild(mlt); mlt.appendChild(play); play.appendChild(doc.importNode(info.xml, true)); + QDomElement tractor = doc.createElement("tractor"); + tractor.setAttribute("id", "tractor0"); + QDomElement track = doc.createElement("track"); + track.setAttribute("producer", "playlist0"); + tractor.appendChild(track); + mlt.appendChild(tractor); producer = new Mlt::Producer(*m_mltProfile, "xml-string", doc.toString().toUtf8().constData()); } else { producer = new Mlt::Producer(*m_mltProfile, path.toUtf8().constData()); |