Skip to content

test: Extract and characterize output total-byte callback query before Rust swap #5203

Closed

Description

@zackees

C-only prerequisite for the Phase 6 output callback query, later targeting obs-output.

Extract obs_output_get_total_bytes verbatim from libobs/obs-output.c.h:1048-1059 into libobs/obs-output-total-bytes-query.c.h in the existing libobs/build/libobs.core-output+.h.c group. Keep delay_active and delay_capturing available through exact same-group declarations or a minimal private seam. No Rust or public-header changes.

The existing test_encoder_output_getters_characterization.c covers ordinary and NULL queries but not the callback/delay matrix. Leave it unchanged. Add a portable real-private-header fixture covering invalid output returning zero, missing callback returning zero, active delay without capture returning zero without dispatch, and all other combinations forwarding the exact callback/data and full 64-bit result. Preserve guard and read order.

Acceptance: characterize original C first; commit extraction-contract RED then behavior-neutral GREEN; add the tests.d pointer and sorted canonical test graph; keep source inventories and sorted unity membership consistent. Run the whole native_build module, new and unchanged getter tests against reference/hybrid with export parity, every Linux standalone *_rust cmocka target, Windows MSVC and Darwin link checks, and repository lint. No existing C-test edits, public-header edits, WebSocket edits or new workflow files.

File a separate Rust-swap follow-up after this prerequisite is published. It will need safe-core mirrors, real-header layout tests, original-C differential/mutation coverage and real adapter link support in every standalone Rust-static consumer. No new Rust test executable.

Decisions: P2 / port / size:S / ready. No functional prerequisite; this is a behavior-neutral preparation unit. Refresh open-PR footprints and serialize conflicting queued graph/output-group changes before publication.

Activity

  1. added
    port
    ready
    P2
    size:S
    on Nov 19, 2026
  2. zackees commented on Nov 19, 2026

    @zackees
    MemberAuthor

    Claiming: output total-byte callback query prerequisite, pool slot fix5159. 1. Add the missing original-C callback/delay matrix without editing existing tests. 2. Commit extraction-contract RED then verbatim C extraction GREEN, preserving guard/read order. 3. Validate native_build, focused reference/hybrid Tier 2 plus every *_rust target, MSVC/Darwin links and lint; publish when backpressure permits. First PR expected this session.

  3. zackees commented on Nov 19, 2026

    @zackees
    MemberAuthor

    Landed on master in #5207 (f99a921): obs_output_get_total_bytes is characterized across its full guard matrix and extracted. The Rust swap is #5208.

  4. moved this from In progress to Done in obs-rust Multiviewon Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2portreadysize:S

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions