Fix timeline video thumbnails sometimes not showing up

parent d4eba74b
......@@ -141,15 +141,15 @@ void ClipManager::stopThumbs(const QString &id)
void ClipManager::slotGetThumbs()
{
QMap<QString, int>::iterator i = m_requestedThumbs.begin();
QMap<QString, int>::const_iterator i;
int max;
int done = 0;
while (i != m_requestedThumbs.end() && !m_abortThumb) {
QString producerId = i.key();
while (!m_requestedThumbs.isEmpty() && !m_abortThumb) {
m_thumbsMutex.lock();
i = m_requestedThumbs.constBegin();
QString producerId = i.key();
QList<int> values = m_requestedThumbs.values(producerId);
m_requestedThumbs.remove(producerId);
i = m_requestedThumbs.begin();
m_thumbsMutex.unlock();
qSort(values);
DocClipBase *clip = getClipById(producerId);
......
......@@ -2765,7 +2765,6 @@ void ProjectList::slotProxyCurrentItem(bool doProxy, ProjectItem *itemToProxy)
continue;
}
resetThumbsProducer(clip);
oldProps = clip->properties();
if (doProxy) {
newProps.clear();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment