fix(avplayer): deliver the frame at a jump while paused #893
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/893"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by merwie on 2026-10-06T13:20:58Z.
What
libSceAvPlayer(and.native, which shares the code) returned no video while paused, including right after a jump. Unity's video player prepares a clip in four steps:sceAvPlayerStart, then a few frames.sceAvPlayerPause, thensceAvPlayerJumpToTime(0).sceAvPlayerGetVideoDataEx/sceAvPlayerIsActiveuntil the frame at the jump arrives.PPSA12544 (Hollow Knight: Silksong) does this for its intro cinematic. Traced on
main:The screen stays black.
The change: while paused, the first frame after a jump (the first frame of a new epoch) is now delivered, and the paused clock is rebased to it. Every other frame is still held until the player resumes, as before.
Player::GetVideoDataaccepts the paused state, andtakeVideoholds frames of the current epoch while paused. shadPS4 also returns frames while paused, gated by its paused clock.GuestAvPlayernow pauses, jumps to 300 ms, and expects that one frame (timestamp 300..367) and nothing after it while still paused. The existing "no data while paused" check still holds.Tested
guest_avplayerand the other non-GPU tests pass (212).Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Claude Code