From: Jean-Baptiste Mardelle Date: Wed, 12 Oct 2011 21:10:44 +0000 (+0000) Subject: remove useless locks X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=ec42e400f6e604f682903cfdfb16581cc8b34378;p=kdenlive remove useless locks svn path=/trunk/kdenlive/; revision=5954 --- diff --git a/src/kthumb.cpp b/src/kthumb.cpp index 2369dc37..d8a91e80 100644 --- a/src/kthumb.cpp +++ b/src/kthumb.cpp @@ -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: "<