SIGN IN SIGN UP
shadps4-emu / shadPS4 UNCLAIMED

PlayStation 4 emulator for Windows, Linux, macOS and FreeBSD written in C++

0 0 91 C++

Lib.VideoOut: Properly remove events on close (#4456)

* Fix flip status on close

* Store equeues by handle instead of pointer

As is, a game could call sceKernelDeleteEqueue on the equeue registered for flip/vblank events, and terminate the equeue while our VideoOut driver retains a valid pointer to it.
Changing to storing the equeue handle means we can check if the equeue still exists and prevent this.

* Remove flip and vblank events on sceVideoOutClose

* Don't forget to clear vectors

* Oops

Intended to erase the memset on FlipStatus, not VblankStatus.
S
Stephen Miller committed
03ebac577b9a682b1e77e4310cc028f7ab5f732f
Parent: f95edd2
Committed by GitHub <noreply@github.com> on 5/20/2026, 9:31:37 PM