]> git.sesse.net Git - kdenlive/commitdiff
Make sure we add a tractor when building xml clips
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Sat, 22 Sep 2012 10:13:37 +0000 (12:13 +0200)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Sat, 22 Sep 2012 10:13:37 +0000 (12:13 +0200)
src/renderer.cpp

index 3b4a8957ab7d607f007e18ce966b92b54a07e2bd..df2cce42dd1d2361c9a04e7660e40b18a919b4de 100644 (file)
@@ -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());