fix(libSceVideoOut): return VIDEO_OUT_ERROR_INVALID_VALUE for a flip rate outside 0..2 #5691
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/5691"
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 xXPBSXx on 2026-10-14T06:58:01Z.
What
PPSA13356 (Raiden III) calls
sceVideoOutSetFlipRate(handle, 60)at start-up.sceVideoOutSetFlipRateaccepted only 0, 1 and 2 and threw for any other rate, so the title aborted:(
PPSA13356_rU/run_081948.errlines 8-9,main+ #5038, without this change; the rate 60 was read with a local log line inPPSA13356_rR/run_080252.errline 6.)The function now returns
VIDEO_OUT_ERROR_INVALID_VALUEfor a rate outside 0..2 and leaves the stored rate unchanged.76e5edcac) + #5038 the run no longer stops atsceVideoOutSetFlipRate; it goes on and ends at a different place,what(): NGS2: invalid voice handle(PPSA13356_rV/run_083704.errlines 29-30, and in two repeatsrun_083940.err,run_084444.err). That stop is not part of this pull request.VIDEO_OUT_ERROR_INVALID_VALUEfor it. There is no source for it in the repository. The change relies on the title tolerating the error;docs/dev/debt/libSceVideoOut.mdhas an entry that says so.scePadUnknown_n3kSX62fgNo(#5038) has to be merged for PPSA13356 to reach this call; this change does not depend on it in code.Tested
Windows 10 (19045), MinGW-w64 GCC 15.2.0, Release. Branch rebased onto
main1e7272196(two commits, no merge):video_out_flip_tests controls(changed: callssceVideoOutSetFlipRatewith 3, 60 and -1, expectsVIDEO_OUT_ERROR_INVALID_VALUEand an unchanged stored rate) passes with this change; the other four flip tests (lifetime,reopen,overlay,unopened) pass too. They ran withSDL_VIDEODRIVER=windowson an RTX 4080 SUPER, because under ctest the SDL driver isoffscreenand the tests are skipped.Output.cpp(taken frommain, test kept)controlsfails:sceVideoOutSetFlipRate: VIDEO_OUT_ERROR_INVALID_VALUE, exit code 1.python tools/check_conventions.py --base upstream/mainwith this title and body passes.76e5edcac+ #5038 (merge6a4d76b8e); librariesninja -C build -j4 relinkerplus all 126core/libs/libs/*.prxof that tree, finished 08:36:53 local time (libSceAgcDriver.prx08:36:23);relinker.exe2026-10-14 07:35:29;app.exerelinked 08:37:00 withrelink_title_trace.ps1 -Repo K:\AnyPS5\wt-sockets(relinker.exe --windows --registry --trace-imports, no-ModuleDir); runrun_title.ps1 -Seconds 90. Result: pastSetFlipRate, thenNGS2: invalid voice handleas above.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt (docs/dev/debt/libSceVideoOut.md).mdfiles or images added to the repositorysceVideoOutSetFlipRate; no bring-up discussion known to meAI-assisted (Claude Code).
🤖 Generated with Claude Code
Imported from boykopovar/AnyPS5. Originally posted by xXPBSXx on 2026-10-15T05:35:55Z.
@adriadam10 a single, short request for review of our five open pull requests (all
CLEAN,mergeable, Conventions/Eligibility/Intake checks green on each; each description names its title, the log line and the test that fails without the change):sceVideoOutSetFlipRate, Raiden III x MIKADO MANIAX (PPSA13356); the title reaches this call only with #5038 merged, this change does not depend on it in codesceAgcDriverRegisterDefaultOwner, Broken Sword - Shadow of the Templars: Reforged (PPSA21480)CopyZeroPaddedDrawInput, The Mound: Omen of Cthulhu (PPSA26223)abort()(diagnostic only), Sifu (PPSA03001)Thank you for the reviews and merges on #4778, #5020 and #5143. No reply is needed beyond whatever review you see fit; I will not post a second request.
AI-assisted (Claude Code).
Imported from boykopovar/AnyPS5. Originally posted by adriadam10 on 2026-10-15T12:04:56Z.
Checked: the full diff,
video_out_flip_tests(controls, lifetime, reopen, overlay, unopened) on Linux with a display, and the changedcontrolstest fails without theOutput.cppchange. KytyPS5 and prosper also returnVIDEO_OUT_ERROR_INVALID_VALUEfor a rate outside 0..2, and the constant matches. The unverified rate 60 is recorded indocs/dev/debt/libSceVideoOut.md. Merging once the full Build is green.Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-15T12:08:39Z.
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.
core/libs/prx/libSceVideoOut/tests/Flip.cppcore/libs/prx/libSceVideoOut/src/Output.cppdocs/dev/debt/libSceVideoOut.mdcore/libs/prx/libSceVideoOut/tests/Flip.cppcore/libs/prx/libSceVideoOut/tests/Flip.cppcore/libs/prx/libSceVideoOut/tests/Flip.cppcore/libs/prx/libSceVideoOut/tests/Flip.cppcore/libs/prx/libSceVideoOut/tests/Flip.cppcore/libs/prx/libSceVideoOut/tests/Flip.cppcore/libs/prx/libSceVideoOut/tests/Flip.cppcore/libs/prx/libSceVideoOut/tests/Flip.cppcore/libs/prx/libSceVideoOut/tests/Flip.cppcore/libs/prx/libSceVideoOut/tests/Flip.cppcore/libs/prx/libSceVideoOut/tests/Flip.cppcore/libs/prx/libSceVideoOut/tests/Flip.cppcore/libs/prx/libSceVideoOut/tests/Flip.cppcore/libs/prx/libSceVideoOut/tests/Flip.cppcore/libs/prx/libSceVideoOut/tests/Flip.cppcore/libs/prx/libSceVideoOut/tests/Flip.cppcore/libs/prx/libSceVideoOut/tests/Flip.cppcore/libs/prx/libSceVideoOut/tests/Flip.cppdocs/dev/debt/libSceVideoOut.mdcore/libs/prx/libSceVideoOut/tests/Flip.cpp