libSceAvPlayer: auto start restarts playback the title already started and releases the frame it holds #2793
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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 Yassin6up on 2026-10-10T15:20:09Z.
sceAvPlayerAddSource queues an auto start for a player created with auto start or without an event callback (Player.cpp, autoStartEnabled). If the title enables its streams and calls sceAvPlayerStart before the controller thread runs that auto start, Player::autoStart calls Start on the playing player. Start then goes through stopLocked: Source::Stop releases every video buffer, including the frame the title holds, and the film starts over.
Measured on Linux (Ubuntu 24.04, GCC 13.3, main
8b812318): right after TestUnsyncedVideoKeepsUpWithAudio's own sceAvPlayerStart, 8 texture buffers are released within 100 ms in 15 of 15 runs. Under parallel load guest_avplayer occasionally fails with "video frame is not a texture allocation" (1 of 200 runs), when the test checks a frame the restart has just released.Fix: commit
4602d35f4on branch claude/peaceful-fermat-us6v6j of https://github.com/Yassin6up/AnyPS5. It applies cleanly on its own to main8b812318.b7dec57a(#2709).Related: #2709 (commit
fa5199cd8on the same branch makes guest_avplayer failures print their message instead of aborting on Linux).AI-assisted: yes.