Skip to content

rust: Port the private video stop_requested helper to obs-core #4098

Closed

Description

@zackees

Unit

stop_requested in libobs/obs-video.c.h:885-896, targeting rust/obs-core after the C prerequisite lands.

Phase and position

Phase 6, one private video orchestration helper; native child of #444.

Dependencies and existing tests

No dedicated characterization exists. First land a C-only characterization and verbatim .c.h extraction in the existing unity group (testing-policy.md:189-216). Then RED Rust stub and GREEN safe core/FFI port with differential C oracle and unchanged Tier 2 coverage. Public headers, existing C tests, obs-audio and obs-websocket remain untouched.

Contract and acceptance

  • Empty mix list returns true.
  • Return true exactly when every output reports stopped.
  • Visit every mix in order, including after the first running output.
  • Hold mixes_mutex across the complete traversal and all output queries, release it before returning.
  • Preserve the existing atomic implementation inside video_output_stopped; no new placeholder globals or aborting link stubs.
  • No intended behavior difference; Tier 4 is inapplicable to this internal helper.

Activity

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

    @zackees
    MemberAuthor

    Claiming: stop_requested (#444), worker-pool port-video-helper in obs-studio3. 1. Characterize the C traversal, lock scope, empty list and all stop-state combinations; extract the helper verbatim into its own .c.h in the existing unity group. 2. Land the C-only prerequisite before the Rust swap as required by testing-policy.md. 3. RED then GREEN Rust core/FFI and C-oracle differential coverage. First C-only PR this session; if test graph registration changes, hold it for graph serialization per the pool assignment.

  3. self-assigned this
    on Nov 9, 2026
  4. zackees commented on Nov 9, 2026

    @zackees
    MemberAuthor

    Blocked: waiting on the C-only prerequisite #4099 to land. It is ready, held for graph serialization per the worker-pool assignment; auto-merge is off. Characterization and verbatim extraction are pushed at 0c08e63. Final lint passes; generated graph compile/run passes GCC and Clang; the actual CTest target passes with C-reference and hybrid paths; libobs exports are identical (1767). The broad Tier 2 harness exceeded 900 s after zccache daemon failure and its automatic uncached recovery; full-suite success is not claimed. Rust RED/GREEN and oracle work remain pending because testing-policy.md requires this C prerequisite to land first.

  5. added
    claim-blocked
    on Nov 9, 2026
  6. zackees commented on Nov 9, 2026

    @zackees
    MemberAuthor

    Claiming: continuing worker-pool fix-4099 in obs-studio3. 1. Repair the unaccepted claim metadata on existing prerequisite PR #4099. 2. Fix its Windows characterization compilation failure without changing assertions or production behavior. 3. Validate, push, and retain the graph serialization hold. First fixup expected this session.

  7. zackees commented on Nov 9, 2026

    @zackees
    MemberAuthor

    Releasing stop_requested temporarily to repair claim acceptance metadata; immediately reclaiming in this same assigned worker-pool session. Existing prerequisite branch: port/4098-video-stop-requested, PR #4099. The issue is assigned but the initial Claiming comment was never accepted; the claim bot ignores repeat claims by an existing assignee.

  8. removed
    claim-blocked
    on Nov 9, 2026
  9. zackees commented on Nov 9, 2026

    @zackees
    MemberAuthor

    Claiming: stop_requested prerequisite PR #4099, continuing the assigned worker-pool fix-4099 in obs-studio3 after repairing the missing acceptance metadata. 1. Verify the MSVC max_align_t compilation failure and portable opaque identity token fix. 2. Run GCC and Clang characterization and final lint, push the rebased fixup. 3. Hold #4099 for graph serialization with auto-merge off. First fixup this session; Rust port remains a follow-up after this C prerequisite lands.

  10. moved this from In merge queue to Done in obs-rust Multiviewon Nov 9, 2026
  11. rdoupe commented on Nov 10, 2026

    @rdoupe
    Collaborator

    The extraction (#4099) closed this issue, but stop_requested in libobs/obs-video-stop-requested.c.h is still C on master (45dc048), and I can't find a Rust port branch for it. Are you still planning the Rust port here, the way #4408 and #4285 follow their extractions? If you've let it go, I'll open a fresh port issue for it and take it: RED Tier 1 mirrors of the characterization, a GREEN obs-core / video_stop_requested module behind a small mixes_mutex field adapter, then Tier 3 parity against the extracted C.

  12. rdoupe commented on Nov 11, 2026

    @rdoupe
    Collaborator

    Taking over stale claim from @zackees for the Rust half of stop_requested. This issue is closed, so the port continues on its own issue, #4670, with the plan there: a C bridge in obs-video-stop-requested.c.h, a hidden obs_video_stop_requested in obs-core::video_stop_requested, the unchanged characterization run against the Rust as well, and Tier 3 parity against the extracted C.

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