From 522e99afb9d09d45f867e9e271d857d7e6a369ed Mon Sep 17 00:00:00 2001 From: elasota Date: Mon, 12 Oct 2020 00:36:13 -0400 Subject: [PATCH] Fix audio deadlock --- PortabilityLayer/PLSound.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PortabilityLayer/PLSound.cpp b/PortabilityLayer/PLSound.cpp index 0418bae..c011e09 100644 --- a/PortabilityLayer/PLSound.cpp +++ b/PortabilityLayer/PLSound.cpp @@ -369,7 +369,7 @@ namespace PortabilityLayer return nullptr; } - PortabilityLayer::HostMutex *mutex = PortabilityLayer::HostSystemServices::GetInstance()->CreateMutex(); + PortabilityLayer::HostMutex *mutex = PortabilityLayer::HostSystemServices::GetInstance()->CreateRecursiveMutex(); if (!mutex) { audioChannel->Destroy();