Repository navigation
fix(avplayer): deliver the first paused picture after audio starts - #7680
adriadam10 merged 2 commits into
Conversation
|
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
karimibrahim07
left a comment
There was a problem hiding this comment.
Windows run of head a7ab0a0b9 in a full in-tree build, since the description lists that as not done. Merged onto main ccbd40240 together with #7669, #7670, #7709 and #7717 (each merge clean, built once). Windows 11 Pro (26300), Ryzen 5 3600, WinLibs GCC 15.2.0 r7, Ninja Release, BUILD_TESTING=ON.
guest_avplayer,guest_avplayer_callback_closeand the newguest_avplayer_paused_first_videopass,--repeat until-fail:3.- Negative control: with
main'sSource.cppthe new test fails withfirst video frame blocked during paused preparation after audio started.
Code: presented is reset only in the start path (with clockEpoch = 0) and is set when a picture is handed out. So the new condition only lets one picture through while paused, before the first one since sceAvPlayerStart. After a paused jump presented is still true and the old rule applies, which TestRestartAfterPausedJumpKeepsClockRunning covers. The test's last check, that no second picture comes while paused, pins that down. I have no requests.
Not checked: Linux, and a title (I don't have The Lost Crown).
AI-assisted: yes. I ran the build, the tests and the negative control above.
|
Checked the |
|
I have one more pull request |
What
Allow the first video picture to be returned while playback is paused after audio has already established the playback epoch. Previously
takeVideorejected that picture solely because its epoch was not newer than the audio clock, leaving a caller that prepares video this way with no picture. Once a picture has been presented, the existing paused-frame restriction still applies.Ported from a local Lost Crown bring-up fix, with a standalone synthetic movie regression for both default and no-sync modes. No title-specific paths or IDs are introduced. This does not change the no-sync playback clock policy or claim an FPS gain. The console's exact initial preparation ordering has not been measured; this limitation is recorded in the AvPlayer technical debt.
Tested
Windows x64, GCC 15.2.0 / MinGW, Release. The current-main AvPlayer sources and regression executable were compiled in an external CMake validation harness using the existing FFmpeg static build and existing libc/kernel dependency artifacts; this is not a complete clean build of all upstream targets. No game files are included.
Baseline runtime with the new test: fails with
first video frame blocked during paused preparation after audio started.Patched runtime: standalone paused-first-video regression passes for both sync modes (1.86 s).
Existing AvPlayer playback suite passes (9.34 s), including pause/jump/resume and no-sync clock behavior.
Callback-close suite passes (0.80 s).
tools/check_conventions.py --base origin/main: passed.Linux and a full clean runtime build have not been tested.
Repository overlap checker ran against all open PRs. Its documentation conflict with fix(avplayer): report frame rate and colour info in extended video details #7412 was resolved by placing the new note separately. fix(avplayer): keep handed-out video frames until later frames are handed out #1601 (frame ownership) and test: organize library tests and label CTest suites #6044 (test reorganization) already conflict with current main, so their shared-file patches were reviewed manually; they do not implement this paused-first-picture correction.
Checklist
Based on current
main; no other open PR implements the same functionsOne topic per PR; follow-ups go in a new PR
No comments in code except technical debt
Unimplemented paths throw (
NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt fileNo notes, investigation
.mdfiles or images added to the repository (attach them to this PR)New third-party code is a submodule built from source
Generic behaviour, not specific to one title
Depends on: none
Fixes: none
Unblocks: none; synthetic regression, no claim of unblocking a complete title
GPUs tested: n/a (AvPlayer CPU decoding/state change)
AI-assisted: yes