]> git.sesse.net Git - kdenlive/commitdiff
Fix missing check for valid producer.
authorDan Dennedy <dan@dennedy.org>
Sun, 19 Sep 2010 04:51:55 +0000 (04:51 +0000)
committerDan Dennedy <dan@dennedy.org>
Sun, 19 Sep 2010 04:51:55 +0000 (04:51 +0000)
http://www.kdenlive.org/forum/crash-when-opening-kdenlive-file

svn path=/trunk/kdenlive/; revision=4905

src/renderer.cpp

index 56fccbbe1cc185a7aae76ddf9f850a77663d3b67..392189bd69bac2da3a8a97a14de4ae99ea3b7d87 100644 (file)
@@ -628,7 +628,7 @@ void Render::getFileProperties(const QDomElement xml, const QString &clipId, int
         char *tmp = decodedString("kdenlivetitle:" + xml.attribute("resource"));
         producer = new Mlt::Producer(*m_mltProfile, 0, tmp);
         delete[] tmp;
-        if (producer && xml.hasAttribute("xmldata")) {
+        if (producer && producer->is_valid() && xml.hasAttribute("xmldata")) {
             tmp = decodedString(xml.attribute("xmldata"));
             producer->set("xmldata", tmp);
             delete[] tmp;