- parent->slotGotProgressInfo(i18n("Loading"), 0);
- QDomElement mlt = m_document.firstChildElement("mlt");
- QDomElement infoXml = mlt.firstChildElement("kdenlivedoc");
-
- profileName = infoXml.attribute("profile");
- m_projectFolder = KUrl(infoXml.attribute("projectfolder"));
- QDomElement docproperties = infoXml.firstChildElement("documentproperties");
- QDomNamedNodeMap props = docproperties.attributes();
- for (int i = 0; i < props.count(); i++) {
- m_documentProperties.insert(props.item(i).nodeName(), props.item(i).nodeValue());
- }
- // Build tracks
- QDomElement e;
- QDomElement tracksinfo = infoXml.firstChildElement("tracksinfo");
- if (!tracksinfo.isNull()) {
- QDomNodeList trackslist = tracksinfo.childNodes();
- int maxchild = trackslist.count();
- for (int k = 0; k < maxchild; k++) {
- e = trackslist.at(k).toElement();
- if (e.tagName() == "trackinfo") {
- TrackInfo projectTrack;
- if (e.attribute("type") == "audio") projectTrack.type = AUDIOTRACK;
- else projectTrack.type = VIDEOTRACK;
- projectTrack.isMute = e.attribute("mute").toInt();
- projectTrack.isBlind = e.attribute("blind").toInt();
- projectTrack.isLocked = e.attribute("locked").toInt();
- projectTrack.trackName = e.attribute("trackname");
- m_tracksList.append(projectTrack);
+ parent->slotGotProgressInfo(i18n("Check missing clips"), 0);
+ QDomNodeList infoproducers = m_document.elementsByTagName("kdenlive_producer");
+ success = checkDocumentClips(infoproducers);
+ if (success) {
+ parent->slotGotProgressInfo(i18n("Loading"), 0);
+ QDomElement mlt = m_document.firstChildElement("mlt");
+ QDomElement infoXml = mlt.firstChildElement("kdenlivedoc");
+ QDomElement e;
+
+ // Build tracks
+ QDomElement tracksinfo = infoXml.firstChildElement("tracksinfo");
+ if (!tracksinfo.isNull()) {
+ QDomNodeList trackslist = tracksinfo.childNodes();
+ int maxchild = trackslist.count();
+ for (int k = 0; k < maxchild; k++) {
+ e = trackslist.at(k).toElement();
+ if (e.tagName() == "trackinfo") {
+ TrackInfo projectTrack;
+ if (e.attribute("type") == "audio")
+ projectTrack.type = AUDIOTRACK;
+ else
+ projectTrack.type = VIDEOTRACK;
+ projectTrack.isMute = e.attribute("mute").toInt();
+ projectTrack.isBlind = e.attribute("blind").toInt();
+ projectTrack.isLocked = e.attribute("locked").toInt();
+ projectTrack.trackName = e.attribute("trackname");
+ m_tracksList.append(projectTrack);
+ }