]> git.sesse.net Git - kdenlive/commitdiff
remove useless locks
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Wed, 12 Oct 2011 21:10:44 +0000 (21:10 +0000)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Wed, 12 Oct 2011 21:10:44 +0000 (21:10 +0000)
svn path=/trunk/kdenlive/; revision=5954

src/kthumb.cpp

index 2369dc37e0ac7f5813edcce0f7cbfd737b4a2a51..d8a91e80671289bf0d00e3c729e4383515c699c1 100644 (file)
@@ -133,10 +133,7 @@ void KThumb::doGetThumbs()
     while (!m_requestedThumbs.isEmpty()) {
         int frame = m_requestedThumbs.takeFirst();
         if (frame != -1) {
-            m_mutex.lock();
-            QImage img = getFrame(m_producer, frame, swidth, dwidth, theight);
-            m_mutex.unlock();
-            emit thumbReady(frame, img);
+            emit thumbReady(frame, getFrame(m_producer, frame, swidth, dwidth, theight));
         }
     }
 }
@@ -490,12 +487,10 @@ void KThumb::slotGetIntraThumbs()
     while (!m_intraFramesQueue.isEmpty()) {
         int pos = m_intraFramesQueue.takeFirst();
         if (!m_clipManager->pixmapCache->contains(path + QString::number(pos))) {
-            m_mutex.lock();
             if (m_clipManager->pixmapCache->insertImage(path + QString::number(pos), getFrame(m_producer, pos, frameWidth, displayWidth, theight))) {
                 addedThumbs = true;
             }
             else kDebug()<<"// INSERT FAILD FOR: "<<pos;
-            m_mutex.unlock();
         }
         m_intraFramesQueue.removeAll(pos);
     }