Skip to content

rust: Port the transition start checks in obs-source-transition.c to obs-source #2473

Closed

Description

@rdoupe

Rust port, round 9 unit 1: the transition start checks and source handover in libobs/obs-source-transition.c.h, moved to obs-source.

Scope

Rust takes over these decisions:

  • set_source: the clock flags, the same-child shortcut, the handover order when the slot is already active (add the new child first, remove the old only if the add worked), the callback gate, and when size and matrices are recalculated;
  • write_start_clock: the restart rule;
  • obs_transition_start: the first refusal, the recursion pre-check's start value, the "finish the running transition first" step, the second read's refusal and the manual same-target success, the fixed-duration choice, the duration in ns, and the null-destination rule;
  • activate_transition, obs_transition_get_active_source and the child choice of obs_transition_save;
  • obs_transition_set_manual_time: when source A is set;
  • obs_transition_set: the stop signal when active, and which old children are removed;
  • copy_source_state, obs_transition_swap_begin / _end: the same-transition gate and which children are removed and added.

C keeps the transition and texture locks where they are taken today (the start reads the sources in three separate lock sections), every ref and release, add and remove active child, the recursion walk, the plugin's transition_start callback (which can re-enter), signals, the size and matrix recalculation, os_gettime_ns and the logs.

Plan

The standard six commits:

  1. move;
  2. characterization test;
  3. Tier 1 RED;
  4. GREEN in a libobs.ported-* group;
  5. Tier 3 parity;
  6. docs.

Activity

  1. added
    ready
    on Oct 26, 2026
  2. rdoupe commented on Oct 26, 2026

    @rdoupe
    CollaboratorAuthor

    Claiming: #2473 (round 9 unit 1, transition start checks).

  3. moved this from In progress to Done in obs-rust Multiviewon Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

ready

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions