fix(avplayer): keep title-started playback running #2896

Merged
MarcZX10 merged 1 commit from upstream-pr/2896 into main 2026-10-10 19:58:16 +00:00
MarcZX10 commented 2026-10-10 18:00:07 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-10T18:00:07Z.


What

Prevent the queued AvPlayer auto start from restarting playback after the title has already started the player. The auto start checks readiness before stream setup and again under the player lock before starting. Add a regression test that checks the title-held frame remains allocated, and record that this behavior has not been confirmed on a title.

Fixes #2793. Carries Yassine’s reviewed commit 4602d35f4ddcc22e4442df13a2b90930147da669 with the original author preserved.

Tested

  • Linux x86_64, GCC 12.2, Release: built guest_avplayer_tests; guest_avplayer passed once and 10 repeated runs.
  • python3 tools/check_conventions.py --base upstream/main passed.
  • git diff upstream/main...HEAD --check passed.
  • Windows not tested here.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw; no silent stubs added
  • No notes, investigation files or images added to the repository
  • No third-party code added
  • Generic behavior, not specific to one title
  • Depends on: none
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4813315589 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2896). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-10T18:00:07Z. --- ### What Prevent the queued AvPlayer auto start from restarting playback after the title has already started the player. The auto start checks readiness before stream setup and again under the player lock before starting. Add a regression test that checks the title-held frame remains allocated, and record that this behavior has not been confirmed on a title. Fixes #2793. Carries Yassine’s reviewed commit `4602d35f4ddcc22e4442df13a2b90930147da669` with the original author preserved. ### Tested - Linux x86_64, GCC 12.2, Release: built `guest_avplayer_tests`; `guest_avplayer` passed once and 10 repeated runs. - `python3 tools/check_conventions.py --base upstream/main` passed. - `git diff upstream/main...HEAD --check` passed. - Windows not tested here. ### Checklist - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except technical debt - [x] Unimplemented paths throw; no silent stubs added - [x] No notes, investigation files or images added to the repository - [x] No third-party code added - [x] Generic behavior, not specific to one title - [x] Depends on: none - [x] AI-assisted: yes
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!2896
No description provided.