From 9f5c9a2260849240bd680b8fdf533acdef7f9de1 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sun, 30 Dec 2018 21:38:42 -0800 Subject: Rename BackendLock to StateLock --- Alc/backends/jack.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Alc/backends/jack.cpp') diff --git a/Alc/backends/jack.cpp b/Alc/backends/jack.cpp index 5ac0ff4d..78de2699 100644 --- a/Alc/backends/jack.cpp +++ b/Alc/backends/jack.cpp @@ -200,7 +200,7 @@ int JackPlayback::bufferSizeNotifyC(jack_nframes_t numframes, void *arg) int JackPlayback::bufferSizeNotify(jack_nframes_t numframes) { - lock(); + std::lock_guard _{mDevice->StateLock}; mDevice->UpdateSize = numframes; mDevice->NumUpdates = 2; @@ -218,7 +218,6 @@ int JackPlayback::bufferSizeNotify(jack_nframes_t numframes) ERR("Failed to reallocate ringbuffer\n"); aluHandleDisconnect(mDevice, "Failed to reallocate %u-sample buffer", bufsize); } - unlock(); return 0; } -- cgit v1.2.3