Repository navigation
Description
Unit
libobs/obs-source-transition-seam.h / libobs/obs-source-transition-seam.c.h (live C in libobs.core-source): four new accessors, so the coming ports of the transition start and set and of the clock read and stop helpers to rust/obs-source-seam can call a transition's callbacks, emit its signals and read the video time without the struct layout:
bool obs_source_transition_seam_call_start(obs_source_t *transition): callsinfo.transition_start(context.data)when it is set, and returns whether it was (obs-source-transition-switch.c.h186-187).bool obs_source_transition_seam_call_stop(obs_source_t *transition): the same forinfo.transition_stop(obs-source-transition.c.h178-179).void obs_source_transition_seam_dosignal(obs_source_t *transition, const char *signal_obs, const char *signal_source): calls thestatic inlineobs_source_dosignal()(obs-internal.h), asobs-source-transition.c.h180 and 291 andobs-source-transition-switch.c.h207 and 240 do. Both strings pass through unchanged (a NULL one is skipped byobs_source_dosignal).uint64_t obs_source_transition_seam_get_video_time(void): returnsobs_video_stats_frame_time(&obs->video.stats)(obs-source-transition.c.h89). It takesobs->video.stats.mutex; its callers holdtransition_mutex, and the header comment says so.
Each is a single call, copied from the line it wraps. No C caller changes: the transition code keeps its direct calls until the ports replace them. Hidden in libobs (not EXPORT), like the seam's other accessors.
Phase and position
Phase 6 (libobs core), transition seam; tracking issue #4 (Phase 6 tracker #444). Follows the move of the transition start and set (#3794, merged in #3820). Batched in one PR with the extraction of the transition clock read and stop helpers (filed next).
Dependencies and existing tests
- The seam (
obs-source-transition-seam.c.h) and its field accessors, on master. Its existing accessors are covered by the seam parity tests inrust/obs-source-seam/tests/source_seam/, through the oracle's copy of the seam. - Nothing tests these four yet. A characterization test,
test/cmocka/test_source_transition_seam_calls.c, builds the seam into itself (the accessors are hidden) over a stand-in core and transition: a transition type with counting start and stop callbacks and without them, a signal handler on the core and on the transition, a private transition, and a video frame time. It pins both calls' return value and callback count, the two signals eachdosignalemits (and which it skips for NULL names and a private source), and the video time against the frame time.
Notes
No behaviour change and no Rust: the ports call these. The export sets of the C, hybrid and C reference builds stay identical, with the four accessors local.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
rdoupe commentedon Nov 7, 2026
Claiming: #3835.
Batched in one PR with #3836 (the extraction of the transition clock read and stop helpers), which the port that follows needs beside these accessors.
Plan:
test/cmocka/test_source_transition_seam_calls.c: the seam built into the test (the accessors are hidden) over a stand-in core and transition; both calls with and without their callbacks, eachdosignal's two signals (NULL names and a private source skipped), and the video time against the frame time. Registered intest/cmocka/build/test-graph.json.libobs/obs-source-transition-seam.hand stubbed in the seam (the test fails).Expected PR (draft once RED exists): today.
libobs: Stub the transition seam calls
libobs: Add the transition seam calls
libobs: Stub the transition seam calls
libobs: Add the transition seam calls
test: Count the seam calls test in the inventory
rdoupe commentedon Nov 8, 2026
Progress: the four seam accessors and their test (
test_source_transition_seam_calls) are in #3841, together with #3836. Its PR checks are green and it went into the merge queue, which removed it again on 2026-11-07. Next: find out why the queue dropped it, fix that if it's ours, and queue it again.libobs: Stub the transition seam calls
libobs: Add the transition seam calls
rdoupe commentedon Nov 8, 2026
Fixed by #3841 (merged through the merge queue, together with #3836): the four transition seam accessors (start and stop callbacks, signal emit, video time) are in libobs, hidden like the seam's others, with the characterization test
test_source_transition_seam_calls. No C caller changed and no Rust was added.Left: the ports of the transition start and set and of the clock read and stop helpers to
rust/obs-source-seam, which call these accessors. Their port issues are not filed yet, so there is no follow-up issue number to link; they will be filed when a worker takes them. The Phase 6 trackers (#4, #444) list no checkbox for this unit, so none was ticked.libobs: Add seam calls, move transition stop (obs-rust#3841)