mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-09-02 18:33:16 +02:00
* Mutex protect hash access.
This commit is contained in:
committed by
Michael Zanetti
parent
aaa0affad4
commit
667feee3cc
@@ -320,10 +320,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();
|
||||
}
|
||||
}
|
||||
|
@@ -454,10 +454,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