From 1800faf0dd1aafa8e6885e0b888d60a62a0a911a Mon Sep 17 00:00:00 2001 From: oltolm Date: Thu, 23 Feb 2023 21:30:01 +0100 Subject: [PATCH] cellVdec.cpp: use lock_unlock instead of lock_guard --- rpcs3/Emu/Cell/Modules/cellVdec.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpcs3/Emu/Cell/Modules/cellVdec.cpp b/rpcs3/Emu/Cell/Modules/cellVdec.cpp index 5f08164e77..010157ec5b 100644 --- a/rpcs3/Emu/Cell/Modules/cellVdec.cpp +++ b/rpcs3/Emu/Cell/Modules/cellVdec.cpp @@ -980,10 +980,10 @@ error_code cellVdecClose(ppu_thread& ppu, u32 handle) ppu_execute<&sys_interrupt_thread_disestablish>(ppu, tid); } - std::lock_guard lock{vdec->mutex}; vdec->seq_state = sequence_state::closed; + vdec->mutex.lock_unlock(); - if (!idm::remove_verify(handle, vdec)) + if (!idm::remove_verify(handle, std::move(vdec))) { // Other thread removed it beforehead return CELL_VDEC_ERROR_ARG;