test(avplayer): give the paused-jump restart test an event callback #5733
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/5733"
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 oneandonlydean on 2026-10-14T08:26:15Z.
What
Fixes the intermittent
guest_avplayerfailure ("enable video failed") reported again in #2709 by @simonbronk on currentmain.TestRestartAfterPausedJumpKeepsClockRunning(added with #4652) creates the player withInitData(nullptr), so the player starts the source by itself, and then callssceAvPlayerEnableStreamby hand. When auto-start runs first,EnableStreamfails because the source is already started. Giving the test an event callback, as #2770 did forTestUnsyncedVideoKeepsUpWithAudio, turns auto-start off and removes the race. The fix is @simonbronk's, from #2709.TestAutoStartKeepsStartedPlaybackalso creates the player without events, but it tests that race on purpose and handles both orders.Tested
BUILD_TESTING=ON:ctest -R guest_avplayer --repeat until-fail:30passes 30 of 30.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)