]> git.sesse.net Git - kdenlive/commitdiff
Don't ask for producer property before the producer is set, fixes:
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Thu, 30 Jun 2011 14:15:40 +0000 (14:15 +0000)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Thu, 30 Jun 2011 14:15:40 +0000 (14:15 +0000)
http://www.kdenlive.org/mantis/view.php?id=2204

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

src/projectlist.cpp

index 1b71947680b70752851cf66d8df575894c2746a7..37b9bdb23ee5e17cedd9eb24ed4317068931d598 100644 (file)
@@ -1671,6 +1671,8 @@ void ProjectList::slotReplyGetFileProperties(const QString &clipId, Mlt::Produce
             item->setFlags(Qt::ItemIsSelectable | Qt::ItemIsDragEnabled | Qt::ItemIsEnabled | Qt::ItemIsEditable | Qt::ItemIsDropEnabled);
             toReload = clipId;
         }
+        clip->setProducer(producer, replace);
+        clip->askForAudioThumbs();
         // Proxy stuff
         QString size = properties.value("frame_size");
         if (!useProxy() && clip->getProperty("proxy").isEmpty()) setProxyStatus(item, NOPROXY);
@@ -1697,8 +1699,6 @@ void ProjectList::slotReplyGetFileProperties(const QString &clipId, Mlt::Produce
                 }
             }
         }
-        clip->setProducer(producer, replace);
-        clip->askForAudioThumbs();
 
         if (!replace && item->data(0, Qt::DecorationRole).isNull())
             requestClipThumbnail(clipId);