Commit 43f2e28c authored by Steven Noonan's avatar Steven Noonan Committed by David Reid

coreaudio: don't allow g_DeviceTrackingInitCounter_CoreAudio to go negative

Signed-off-by: default avatarSteven Noonan <steven@uplinklabs.net>
parent 4be3cc59
......@@ -26539,7 +26539,8 @@ static ma_result ma_context__uninit_device_tracking__coreaudio(ma_context* pCont
ma_spinlock_lock(&g_DeviceTrackingInitLock_CoreAudio);
{
g_DeviceTrackingInitCounter_CoreAudio -= 1;
if (g_DeviceTrackingInitCounter_CoreAudio > 0)
g_DeviceTrackingInitCounter_CoreAudio -= 1;
if (g_DeviceTrackingInitCounter_CoreAudio == 0) {
AudioObjectPropertyAddress propAddress;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment