Skip to content

rust: Port libobs/obs-output-set-service.c to obs-output (characterization and extraction first) #5664

Todo

Description

@zackees

Unit: obs_output_set_service, currently inline in libobs/obs-output.c.h, with eventual safe-core destination obs-output.

Phase 6 core output prerequisite. Existing Rust slot gates and service-state accessors are dependencies; this function remains C (merged #2475 explicitly retained it). No direct cmocka caller exists, so characterization must land before any Rust swap.

First deliver a C-only characterization PR invoking the actual library export on private-layout fixtures: NULL output diagnostic, non-service warning and short circuit, output-active/NULL-service/service-active refusals, initial assignment, repeated assignment, service transfer detaching its old output, and replacement preserving the former service's reverse pointer (characterized, not endorsed). Register the portable fixture once in the canonical graph with explicit SIMDe dependency. Then a separate behavior-neutral stacked PR moves the exact C body into its own implementation file in the core-output unity group, with no public header or signature change. A later unit will perform the Rust swap with all applicable tiers.

Acceptance: unchanged reference and hybrid libraries pass the new test; Windows MSVC and Darwin cross links pass; extraction body is byte-identical. No hardware, streaming, or protocol changes; no intentional behavior differences. Hold drafts while backpressure is closed. Related adjacent extractions #5654 and #5660 require a landing-order conflict audit.

Activity

  1. added
    enhancement
    port
    ready
    on Nov 25, 2026
  2. zackees commented on Nov 25, 2026

    @zackees
    MemberAuthor

    Claiming: obs_output_set_service prerequisites in pool slot obs-studio4 (char-output-set-service). 1. Add direct C reference/hybrid characterization on test/output-set-service. 2. Publish a separate stacked verbatim extraction on port/output-set-service-extract. First draft expected this session; both drafts held while backpressure is closed. Rust swap is a later unit.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementportready

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions