Skip to content

libobs: characterize and extract encoder output-list add/remove pair #5313

Closed

Description

@zackees

Characterize and extract the internal output-list pair obs_encoder_add_output and obs_encoder_remove_output from libobs/obs-encoder.c.h:1513-1531 before a separate Rust swap. Phase 6 prerequisite, Lane A; no behavior or ABI change.

Scope: add a focused cmocka C-source test using the real private layouts, pin append order, outputs mutex protection, first-match removal, absent removal, every NULL encoder/output combination and duplicate pointers. Move both current bodies verbatim into libobs/obs-encoder-outputs.c.h, include it alphabetically in the core-output unity group, and register every applicable CMake/Cargo-native source set and canonical test graph entry. Compile the whole test with strict conversion warnings where feasible. Do not modify existing C tests, public headers or held Rust-static support files.

No existing characterization or Rust implementation was found (only documentation in output_slots.rs). Open PR diffs were searched for both symbols and encoder source overlap; #5246/#5280 remove weak-reference functions after this unit, without changing this pair. The large #4655 diff was checked locally after GitHub refused its oversized diff. Follow the most recent merged encoder extraction #5215 and file the subsequent four-tier Rust swap as a separate issue.

Activity

  1. added
    quality
    ready
    P2
    size:S
    on Nov 20, 2026
  2. zackees commented on Nov 20, 2026

    @zackees
    MemberAuthor

    Claiming: encoder output-list characterization/extraction on branch test/5313-encoder-outputs. 1. Pin current C append, first-match removal, absent/NULL/duplicate and outputs-mutex behavior. 2. Commit extraction RED then move the pair verbatim and register canonical/native builds GREEN. 3. Validate, open the prerequisite PR this session and file the separate Rust swap issue. No held support files or weak-reference edits.

  3. rdoupe commented on Nov 20, 2026

    @rdoupe
    Collaborator

    Done in #5317 (merged 2026-11-20): both functions are characterized and extracted to libobs/obs-encoder-outputs.c.h, which unblocks the Rust swap in #5315.

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

Metadata

Metadata

Assignees

Labels

P2qualityreadysize:S

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions