Repository navigation
Description
Phase 6, Lane S prerequisite: characterize and extract only obs_source_get_output_flags from libobs/obs-source.c.h (current master lines 794–797) before a separate Rust swap into obs-source.
The function returns source->info.output_flags, not source->flags or source->default_flags. NULL returns zero and logs exactly obs_source_get_output_flags: Null 'source' parameter at LOG_DEBUG. Preserve the signature and body verbatim.
Add a focused portable cmocka characterization with private stack source fixtures: distinct info/current/default flags, zero and all bits, independent sources, no mutation, and the exact NULL return/diagnostic. Register the extracted .c.h alphabetically in the core-source unity group and register the test in the canonical graph and tests.d using the latest merged source extraction pattern. Shared Rust-static adapters, if needed, belong only in test/cmocka/build/rust-static-support.json after #5246.
Acceptance: passing C characterization before extraction; a separate RED commit requiring the missing extraction; GREEN supplying the identical original function; focused C-reference/hybrid validation and full lint. No Rust, existing C test, public header, workflow, or behavior changes. File a separate dependent swap issue for Tier 1/2/3 and differential mutation coverage. Tier 4 does not apply to this non-protocol accessor.
Collision audit: all 17 open PR file lists checked, relevant diffs searched for the symbol and source-line overlap, including rdoupe #5325. #5280's source hunk is weak-reference release at lines 717–739, disjoint from this accessor. Open issue body/comment search found no competing function claim; merged search and current source confirm the accessor remains unextracted. Latest merged source extraction is #5242; #5246 subsequently centralized Rust-static support.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
zackees commentedon Nov 20, 2026
Claiming: C-only characterization and verbatim extraction of obs_source_get_output_flags on branch test/5338-source-output-flags in obs-studio4 (pool h3-source-output-flags). 1. Pin info.output_flags independently of current/default flags and exact NULL diagnostic with portable cmocka fixtures. 2. Commit characterization, extraction RED, then GREEN with all sibling registrations. 3. Run focused validation and full lint once; push once, open PR and arm pinned auto-merge when backpressure is open. First PR expected this session; Rust swap will be a separate follow-up issue.
rdoupe commentedon Nov 20, 2026
Done by #5352 (merged): the characterization test and the verbatim extraction to
libobs/obs-source-output-flags.c.hare on master. Closing so the Rust swap (#5340) can start.libobs: characterize and extract source output flags (Refs obs-rust#5338