From ffc3859a8d99001812d1ccd8f9cff9457447b58d Mon Sep 17 00:00:00 2001
From: Chris Robinson <chris.kcat@gmail.com>
Date: Tue, 2 Mar 2021 19:59:33 -0800
Subject: Use the correct lock when allocating filters

---
 al/filter.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'al/filter.cpp')

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");
-- 
cgit v1.2.3