You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
libobs: characterize and extract obs_get_video #5353
C-only prerequisite for the Phase 6 libobs core migration: characterize obs_get_video at libobs/obs.c.h:1742-1748, then extract its body verbatim into libobs/obs-get-video.c.h and register it alphabetically in the core unity group.
The core is required. Pin exactly these cases: a main canvas with a mix returns the same borrowed video_t * without taking a reference; NULL main canvas returns NULL; a main canvas without a mix returns NULL. Preserve the original API, all existing C tests and public headers. This does not port the function to Rust or change its behavior.
Add a focused portable cmocka test, canonical test graph registration and tests.d marker following merged #5334. Register any Rust-static link support only in test/cmocka/build/rust-static-support.json. Use no implicit narrowing conversions so new C builds under MSVC /W4. Validate the focused test, verbatim extraction and full ./lint. Track the later Rust swap separately.
Claiming: obs_get_video C characterization/extraction in slot obs-studio4, branch test/h7-get-video. 1. Pin borrowed pointer identity and unchanged reference counts, NULL main canvas and absent mix. 2. Extract verbatim and register the unity member and test. 3. Run focused validation and ./lint; open the prerequisite PR this session and file the separate Rust swap issue.
Claiming: obs_get_video C characterization and verbatim extraction into libobs/obs-get-video.c.h (the earlier claim was released without a branch or PR).
Add a portable cmocka characterization: a main canvas with a mix returns its borrowed video_t by identity with no reference taken; NULL main canvas returns NULL; a main canvas without a mix returns NULL. Record RED registration evidence.
Extract the body verbatim into the core unity group, register the test (graph, tests.d) and run it against hybrid libobs and the C reference.
PR #5419 is up with the RED and GREEN commits. Full Linux Tier 2 passes against both libraries (1074/1074 each), and the new test's three cases ran on each. The NULL-main-canvas case moves to #5354 (the core global is hidden from tests); the PR body explains. It waits on PR CI.
Activity
zackees commentedon Nov 20, 2026
Claiming: obs_get_video C characterization/extraction in slot obs-studio4, branch test/h7-get-video. 1. Pin borrowed pointer identity and unchanged reference counts, NULL main canvas and absent mix. 2. Extract verbatim and register the unity member and test. 3. Run focused validation and ./lint; open the prerequisite PR this session and file the separate Rust swap issue.
rdoupe commentedon Nov 21, 2026
Claiming: obs_get_video C characterization and verbatim extraction into libobs/obs-get-video.c.h (the earlier claim was released without a branch or PR).
rdoupe commentedon Nov 21, 2026
PR #5419 is up with the RED and GREEN commits. Full Linux Tier 2 passes against both libraries (1074/1074 each), and the new test's three cases ran on each. The NULL-main-canvas case moves to #5354 (the core global is hidden from tests); the PR body explains. It waits on PR CI.
rdoupe commentedon Nov 22, 2026
Done in #5419 (merged as 7b81739): obs_get_video is characterized and extracted into its own group, and #5421 then moved it to Rust.
libobs: characterize and extract obs_get_video (Refs obs-rust#5353) (o…