Skip to content

libobs: characterize and extract output weak-handle lifetime functions #4768

Closed

Description

@zackees

Testing-policy prerequisite for output weak-handle lifetime, targeting a later swap to obs-output.

Characterize and extract exactly obs_weak_output_addref, obs_weak_output_release, obs_output_get_weak_output, obs_weak_output_get_output, and obs_weak_output_references_output from libobs/obs-output.c.h:2244-2293. Keep obs_output_get_ref, the atomic reference primitives, allocator ABI, and other output behavior outside the unit. Preserve the private get_weak dependency. This is disjoint from #4755 / #4762 (obs_get_output_source).

Add a new unchanged C characterization test covering NULL inputs, weak ownership and last-handle freeing, live promotion acquiring a strong reference, expired promotion, and pointer identity. Run against hybrid libobs and libobs-c-reference before and after a verbatim extraction to its own .c.h and unity group per BUILD.md. Register the native test once with the same host condition in CMake and test-graph.json. No Rust swap or public-header/existing-C-test changes.

Delivery is branch-only because graph changes are serialized by the pool manager; no PR until the manager publishes it. File the Rust-swap follow-up after verification.

Activity

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

    @zackees
    MemberAuthor

    Claiming: output weak-handle lifetime characterization and extraction, branch test/4768-output-weak-lifetime, pool slot obs-studio12.

    1. Add new C characterization coverage for the five named functions and run against hybrid libobs and libobs-c-reference.
    2. Extract those functions verbatim into their own implementation file and unity group; rerun coverage, native graph checks, and final lint.
    3. Push this branch only for the manager to publish when graph serialization permits, and file the Rust-swap follow-up. Expected branch handoff this session; no PR will be opened by this worker.
  3. moved this from In progress to Ready in obs-rust Multiviewon Nov 14, 2026
  4. rdoupe commented on Nov 16, 2026

    @rdoupe
    Collaborator

    Done on master by #4824, which landed this extraction but said "Refs", so the issue stayed open. Closing it so it no longer shows as unclaimed Ready work.

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

    P2enhancementportreadysize:S

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions