Skip to content

Commit

Permalink
Fix locking twice the same mutex on some OpenAL functions
Browse files Browse the repository at this point in the history
  • Loading branch information
clementgallet committed Aug 7, 2018
1 parent cc37773 commit 652278b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/libTAS/audio/openal/al.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -800,7 +800,6 @@ void alSourcePlay(ALuint source)
void alSourcePlayv(ALsizei n, ALuint *sources)
{
DEBUGLOGCALL(LCF_OPENAL);
std::lock_guard<std::mutex> lock(audiocontext.mutex);
for (int i=0; i<n; i++)
alSourcePlay(sources[i]);
}
Expand All @@ -823,7 +822,6 @@ void alSourcePause(ALuint source)
void alSourcePausev(ALsizei n, ALuint *sources)
{
DEBUGLOGCALL(LCF_OPENAL);
std::lock_guard<std::mutex> lock(audiocontext.mutex);
for (int i=0; i<n; i++)
alSourcePause(sources[i]);
}
Expand All @@ -847,7 +845,6 @@ void alSourceStop(ALuint source)
void alSourceStopv(ALsizei n, ALuint *sources)
{
DEBUGLOGCALL(LCF_OPENAL);
std::lock_guard<std::mutex> lock(audiocontext.mutex);
for (int i=0; i<n; i++)
alSourceStop(sources[i]);
}
Expand All @@ -871,7 +868,6 @@ void alSourceRewind(ALuint source)
void alSourceRewindv(ALsizei n, ALuint *sources)
{
DEBUGLOGCALL(LCF_OPENAL);
std::lock_guard<std::mutex> lock(audiocontext.mutex);
for (int i=0; i<n; i++)
alSourceRewind(sources[i]);
}
Expand Down

0 comments on commit 652278b

Please sign in to comment.