fix locking

This commit is contained in:
Glenn Maynard
2002-12-19 01:30:19 +00:00
parent 35947dfa2f
commit 8826f57b39
+1 -2
View File
@@ -575,10 +575,9 @@ void RageSound::SetPlaybackRate( float fScale )
/* This is used to start music. It probably belongs in RageSoundManager. */
void RageSound::LoadAndPlayIfNotAlready( CString sSoundFilePath )
{
SOUNDMAN->lock.Lock();
LockMutex L(SOUNDMAN->lock);
if( GetLoadedFilePath() == sSoundFilePath && IsPlaying() )
return; // do nothing
SOUNDMAN->lock.Unlock();
Load( sSoundFilePath );
SetLooping();