mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-25 06:51:13 +02:00
* Mutex protect hash access.
This commit is contained in:
@@ -295,10 +295,13 @@ Album::infoSystemInfo( const Tomahawk::InfoSystem::InfoRequestData& requestData,
|
||||
m_coverBuffer = ba;
|
||||
}
|
||||
|
||||
m_coverLoaded = true;
|
||||
s_albumsByCoverId.remove( coverId() );
|
||||
m_coverId = uuid();
|
||||
s_albumsByCoverId[ m_coverId ] = m_ownRef.toStrongRef();
|
||||
{
|
||||
QMutexLocker lock( &s_mutex );
|
||||
m_coverLoaded = true;
|
||||
s_albumsByCoverId.remove( coverId() );
|
||||
m_coverId = uuid();
|
||||
s_albumsByCoverId[ m_coverId ] = m_ownRef.toStrongRef();
|
||||
}
|
||||
emit coverChanged();
|
||||
}
|
||||
}
|
||||
|
@@ -428,10 +428,13 @@ Artist::infoSystemInfo( Tomahawk::InfoSystem::InfoRequestData requestData, QVari
|
||||
m_coverBuffer = ba;
|
||||
}
|
||||
|
||||
m_coverLoaded = true;
|
||||
s_artistsByCoverId.remove( coverId() );
|
||||
m_coverId = uuid();
|
||||
s_artistsByCoverId[ m_coverId ] = m_ownRef.toStrongRef();
|
||||
{
|
||||
QMutexLocker lock( &s_mutex );
|
||||
m_coverLoaded = true;
|
||||
s_artistsByCoverId.remove( coverId() );
|
||||
m_coverId = uuid();
|
||||
s_artistsByCoverId[ m_coverId ] = m_ownRef.toStrongRef();
|
||||
}
|
||||
emit coverChanged();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user