]> git.sesse.net Git - kdenlive/commitdiff
Fix freeze when opening document
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Mon, 27 Jun 2011 11:28:42 +0000 (11:28 +0000)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Mon, 27 Jun 2011 11:28:42 +0000 (11:28 +0000)
svn path=/trunk/kdenlive/; revision=5736

src/docclipbase.cpp
src/projectlist.cpp

index 9df4daec77ecb5b992d1cef5d87d72e58733ce9b..cb947a9b9caf1a4d7720db73901b67fafe13da5c 100644 (file)
@@ -599,7 +599,10 @@ Mlt::Producer *DocClipBase::producer(int track)
 {
     m_producerMutex.lock();
     if (track == -1 || (m_clipType != AUDIO && m_clipType != AV && m_clipType != PLAYLIST)) {
-        if (m_baseTrackProducers.count() == 0) return NULL;
+        if (m_baseTrackProducers.count() == 0) {
+            m_producerMutex.unlock();
+            return NULL;
+        }
         for (int i = 0; i < m_baseTrackProducers.count(); i++) {
             if (m_baseTrackProducers.at(i) != NULL) {
                 m_producerMutex.unlock();
index 1c876f1492469ef6fedb808016df59afeb2d5fa8..8bb2d2bf658b469e221574cd84a0f63ca9cc22dd 100644 (file)
@@ -1094,7 +1094,6 @@ void ProjectList::slotGotProxy(ProjectItem *item)
     DocClipBase *clip = item->referencedClip();
     // Proxy clip successfully created
     QDomElement e = clip->toXML().cloneNode().toElement();
-    kDebug()<<"// QUERYING CLIP, proxy: "<<e.attribute("proxy")<<", OUT: "<<e.attribute("proxy_out");
 
     // Make sure we get the correct producer length if it was adjusted in timeline
     CLIPTYPE t = item->clipType();