Fix race on notifying vdec thread in cellVdecGetPicture

Can dereference nullptr if cellVdecClose was called simultaneously.
This commit is contained in:
Eladash 2019-08-12 07:56:58 +03:00 committed by Ivan
parent 14ac70dfbf
commit 30c72b105e

View File

@ -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)