Repository navigation
test: Rewrite the obs_output_set_video_encoder2 stand-ins to the fixed caller (#2500) - #2507
Merged
Merged
Conversation
…d caller (#2500) The stand-in copies in test_output_slots_steps.c (Tier 2), output_slots.rs (Tier 1) and output_slots_parity.rs (Tier 3) still decided the caption track and the preferred size on the argument, as before #2495. They now decide on the stored slot: an encoder whose reference fails gets no caption track, and clearing index 0 sets no size. Maintainer sign-off for the C test edit was given for #2500.
zackees
enabled auto-merge
October 26, 2026 17:05
Member
Author
|
Coordinator review and sign-off (as on #2289 and #2495): the changed assertions in test_output_slots_steps.c and the Tier 1 and Tier 3 copies only replace the old 'characterized, not endorsed' expectations, no caption track and no NULL size for an empty slot, with what the fixed caller does after #2495. That's the follow-up #2500 asked for. They now agree with test_output_slot_stored_encoder against the real libobs. Queuing. |
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Oct 26, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #2500
#2495 made
obs_output_set_video_encoder2()decide the caption track and the preferred size on the stored slot. The stand-in copies of the caller still decided on the argument, so their "characterized, not endorsed" cases described code that no longer exists. They now follow the fixed caller:test/cmocka/test_output_slots_steps.c(Tier 2):e2e_video_replaceande2e_video_preferred_size.rust/obs-output/tests/output/output_slots.rs(Tier 1): the same two cases.rust/obs-output/tests/output/output_slots_parity.rs(Tier 3): the stand-in sequences.The two cases now expect the fixed result: an encoder whose reference fails gets no caption track, and clearing index 0 sets no size.
The maintainer signed off on editing the existing C test (#2500, as for #2289).
Local: the 32 Rust
output_slotstests pass (obs-tests-core). Tier 2 passed 555/555 in both libobs builds, includingtest_output_slots_stepsandtest_output_slot_stored_encoder../lintpasses. This is a test-only change, so there is no separate RED commit: the updated cases encode #2495's behaviour.