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
stop_requested in libobs/obs-video-stop-requested.c.h (3-14, static inline; its only caller is obs-video.c.h's graphics thread loop), to rust/obs-core, new module video_stop_requested.
Phase and position
Phase 6, libobs core (#444). The extraction and its characterization landed in #4099, which closed the earlier port issue #4098 before the Rust half was done. This is that Rust half. Siblings from the same obs-video.c.h split: the render size (#4285, ported in #4541) and the graphics task loop (#4408).
test/cmocka/test_video_stop_requested.c characterizes the C: every stopped vector up to four mixes (and the empty list), the answer, that every mix is asked even after one is running, and that the real mixes_mutex is held across every query and released on return. It stays unchanged and gains a _rust variant against the Rust implementation.
Notes
Shape: the same as the render size port. The live obs-video-stop-requested.c.h becomes a private bridge that passes the core and small C accessors (lock and unlock of mixes_mutex, mixes.num, mix i's video) plus video_output_stopped to a hidden Rust obs_video_stop_requested. The original C stays as the C reference and the Tier 3 oracle.
Keep the C's order: one lock around the whole loop, num read once under it, no early exit.
No threads, no SIMD, no host code. No intentional differences expected.
Claiming: the video stop check port (batched with the graphics task loop, #4408, if its claim frees up).
RED: a _rust variant of the unchanged test_video_stop_requested and Tier 1 mirrors in rust/obs-core/tests/obs_core/video_stop_requested.rs, against a todo!() stub.
GREEN: the safe core obs-core::video_stop_requested (one lock around the loop, num read once, every mix asked), and the hidden obs_video_stop_requested shim behind the C bridge in obs-video-stop-requested.c.h; the original C becomes the C reference in its own ported group.
Tier 3: an oracle over the extracted C with the real private layouts, exact parity of the answer, the call log and the lock state, with a planted mutant.
Activity
rdoupe commentedon Nov 11, 2026
Claiming: the video stop check port (batched with the graphics task loop, #4408, if its claim frees up).
_rustvariant of the unchangedtest_video_stop_requestedand Tier 1 mirrors inrust/obs-core/tests/obs_core/video_stop_requested.rs, against atodo!()stub.obs-core::video_stop_requested(one lock around the loop,numread once, every mix asked), and the hiddenobs_video_stop_requestedshim behind the C bridge inobs-video-stop-requested.c.h; the original C becomes the C reference in its own ported group.Draft PR expected today.
test: Mirror the video stop check over a stub
obs-core: Port the video stop check to Rust
test: Compare the video stop check with the C
docs: Record the video stop check port
obs-core: Port the video stop check to Rust (obs-rust#4671)