diff options
author | Chris Robinson <[email protected]> | 2021-03-02 19:59:33 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2021-03-02 19:59:33 -0800 |
commit | ffc3859a8d99001812d1ccd8f9cff9457447b58d (patch) | |
tree | 923acaa6acf6cdf125ec7fee775ca211bb3de915 /al/filter.cpp | |
parent | 727503acdb72a86893b9bf053f53e43ab9f01de2 (diff) |
Use the correct lock when allocating filters
Diffstat (limited to 'al/filter.cpp')
-rw-r--r-- | al/filter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/al/filter.cpp b/al/filter.cpp index 0bcfe408..c15b2d3e 100644 --- a/al/filter.cpp +++ b/al/filter.cpp @@ -405,7 +405,7 @@ START_API_FUNC if UNLIKELY(n <= 0) return; ALCdevice *device{context->mDevice.get()}; - std::lock_guard<std::mutex> _{device->EffectLock}; + std::lock_guard<std::mutex> _{device->FilterLock}; if(!EnsureFilters(device, static_cast<ALuint>(n))) { context->setError(AL_OUT_OF_MEMORY, "Failed to allocate %d filter%s", n, (n==1)?"":"s"); |