Fix race on notifying vdec thread in cellVdecGetPicture

Can dereference nullptr if cellVdecClose was called simultaneously.
This commit is contained in:
Eladash authored and Ivan committed 2019-08-13 04:56:00 +03:00
1 parent 14ac70dfbf
commit 30c72b105e
1 file changed
+1 -1
+1 -1
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)