mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-01-06 00:59:18 +00:00
Fix race on notifying vdec thread in cellVdecGetPicture
Can dereference nullptr if cellVdecClose was called simultaneously.
This commit is contained in:
parent
14ac70dfbf
commit
30c72b105e
@ -594,7 +594,7 @@ s32 cellVdecGetPicture(u32 handle, vm::cptr<CellVdecPicFormat> format, vm::ptr<u
|
||||
if (notify)
|
||||
{
|
||||
auto vdec_ppu = idm::get<named_thread<ppu_thread>>(vdec->ppu_tid);
|
||||
thread_ctrl::notify(*vdec_ppu);
|
||||
if (vdec_ppu) thread_ctrl::notify(*vdec_ppu);
|
||||
}
|
||||
|
||||
if (outBuff)
|
||||
|
Loading…
Reference in New Issue
Block a user