Skip to content

test: characterize and extract obs_canvas_clear_mix before Rust swap #5324

Closed

Description

@zackees

C-only Phase 6 prerequisite for obs_canvas_clear_mix in libobs/obs-canvas.c.h:164-181 (Group S), scout-g rank 10. Extract the body verbatim to libobs/obs-canvas-clear-mix.c.h; preserve its existing private signature and all callers. No Rust or public API changes.

Characterize the actual extracted C source using real private canvas/core/mix layouts and darray operations, following the recording-boundary source fixtures already used by hotkey background status. Exercise no mix (including no core), one mix, multiple mixes with removal at each position, an unregistered mix, and duplicate entries (only the first is removed). Record the teardown boundary to verify removal precedes teardown, the mixes mutex is held during teardown, the canvas pointer is cleared after unlocking, exactly one free occurs, and canvas/source references are untouched. A Linux subprocess pins the existing NULL-canvas fault; other platforms stay in the defined domain. This fixture needs no graphics context or video thread; actual downstream GPU/video teardown remains outside this unit's characterization.

Acceptance: sorted S-group include and every inventory used by the latest sibling canvas extraction; canonical test graph and tests.d pointer; MSVC /W4-clean portable C; RED missing extracted seam, then GREEN verbatim extraction; focused Tier 2, native_build::, cross-link checks and one full lint. No link_support files while #5246 is pending. File the separate Rust swap follow-up.

Collision screening: grepped all current open PR diffs for the symbol and obs-canvas.c.h (oversized #4655 checked through paginated files/patches). None overlap this function. #5295 is claimed in obs-studio6 on test/5295-canvas-valid-info; its fetched diff removes only obs_canvas_has_valid_video_info at old lines 195-201. #5142 only adds the channel setter fixture. Backpressure was open (counted=9, headroom=1).

Activity

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

    @zackees
    MemberAuthor

    Claiming: obs_canvas_clear_mix C-only prerequisite in pool slot obs-studio3, branch test/5324-canvas-clear-mix.

    1. Add a focused headless source characterization with real layouts, list operations and mutexes, recording only the teardown boundary and preserving the existing NULL fault in an isolated Linux child.
    2. Commit RED for the missing extraction seam, then extract the unchanged body and register every sibling inventory.
    3. Run focused Tier 2, native_build::, cross links and one full lint; publish according to backpressure and file the separate Rust swap issue. First PR expected this session.
  3. moved this from In progress to Ready in obs-rust Multiviewon Nov 21, 2026
  4. rdoupe commented on Nov 21, 2026

    @rdoupe
    Collaborator

    Done: the extraction merged in #5335 and the Rust swap of obs_canvas_clear_mix merged in #5360.

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

    P2portreadysize:S

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions