Skip to content

rust: Port output pause-state queries to obs-output #4054

Closed

Description

@zackees

Unit

Port obs_output_paused and obs_output_get_pause_offset from libobs/obs-output.c.h to the existing obs-output crate.

Phase and position

Phase 6 public libobs queries; native child of tracking issue #444. The earlier output pause-plan port explicitly left these public getters in C. Disjoint from the output-service getter in #4042 and from encoder state queries.

Dependencies and existing tests

Both bodies remain live in C. No Rust implementation or matching open PR was found, and no open claim for these output pause queries was found. Characterize the actual C library first, extract the functions verbatim in a separate building commit, then commit Tier 1 RED before GREEN. Use the existing core-state test binary, real-header adapter layout checks, Tier 3 differential tests and a mutation check, and unchanged Tier 2 tests against hybrid and reference libraries with identical exports.

Notes

Preserve the atomic paused load, the pause mutex around the offset read, and null-output defaults and diagnostics. Private portable adapters may expose fields and synchronization while keeping the private output layout in C. Never pass null to a member-address accessor. Include deterministic synchronization coverage. Tier 4 does not apply because this is an internal implementation port with no protocol change. No intentional behavior changes, existing C test edits, public header edits, or workflow additions.

Activity

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

    @zackees
    MemberAuthor

    Claiming: output pause-state queries in pool slot obs-studio5. 1. Characterize both public getters and their synchronization against the actual C library. 2. Extract verbatim, then commit Tier 1 RED and Rust GREEN with ABI and differential coverage. 3. Validate both libraries and queue one PR. First draft PR expected this session. This claim is limited to obs_output_paused and obs_output_get_pause_offset.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementportready

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions