cellVdec.cpp: use lock_unlock instead of lock_guard

This commit is contained in:
oltolm 2023-02-23 21:30:01 +01:00 committed by kd-11
parent 19ded3809f
commit 1800faf0dd
1 changed files with 2 additions and 2 deletions

View File

@ -980,10 +980,10 @@ error_code cellVdecClose(ppu_thread& ppu, u32 handle)
ppu_execute<&sys_interrupt_thread_disestablish>(ppu, tid); ppu_execute<&sys_interrupt_thread_disestablish>(ppu, tid);
} }
std::lock_guard lock{vdec->mutex};
vdec->seq_state = sequence_state::closed; vdec->seq_state = sequence_state::closed;
vdec->mutex.lock_unlock();
if (!idm::remove_verify<vdec_context>(handle, vdec)) if (!idm::remove_verify<vdec_context>(handle, std::move(vdec)))
{ {
// Other thread removed it beforehead // Other thread removed it beforehead
return CELL_VDEC_ERROR_ARG; return CELL_VDEC_ERROR_ARG;