mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-07 07:21:25 +12: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
1 changed files with 1 additions and 1 deletions
|
@ -594,7 +594,7 @@ s32 cellVdecGetPicture(u32 handle, vm::cptr<CellVdecPicFormat> format, vm::ptr<u
|
||||||
if (notify)
|
if (notify)
|
||||||
{
|
{
|
||||||
auto vdec_ppu = idm::get<named_thread<ppu_thread>>(vdec->ppu_tid);
|
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)
|
if (outBuff)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue