1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 10:42:36 +01:00

Fix mic thread usage

This commit is contained in:
RipleyTom 2023-03-29 22:11:13 +02:00 committed by Megamouse
parent 82dedb1fbb
commit 0c051a83a7

View File

@ -96,7 +96,7 @@ void mic_context::operator()()
{
std::lock_guard lock(mutex);
if (mic_list.empty())
if (std::none_of(mic_list.begin(), mic_list.end(), [](const microphone_device& dev) { return dev.is_registered(); }))
{
return false;
}