Skip to content

obs-media-io: deliver video after a callback disconnects - #1539

Merged
zackees merged 6 commits into
masterfrom
fix/1535-video-self-disconnect
Oct 20, 2026
Merged

zackees merged 6 commits into
masterfrom
fix/1535-video-self-disconnect

Conversation

@zackees

@zackees zackees commented Oct 20, 2026 •

Copy link
Copy Markdown
Member

When a video callback disconnects itself, removing it shifts the input vector and causes the next subscriber to miss the frame. Track visited registrations and callback/parameter pairs so delivery continues to the other subscribers.

A pair that reconnects itself waits until the next frame. This bounds same-frame reconnection cycles; newly connected distinct pairs still receive the current frame.

Fixes #1535. Split from #1462. The scaler-creation fix (#1534) is already on master and its regression is retained.

Validation:

  • RED f8085ab18: self_disconnect_still_delivers_following_input fails before the delivery fix.
  • RED 8fba33243: self_reconnect_waits_for_the_next_frame detects repeated delivery to the reconnected pair.
  • GREEN: all 236 media tests and both doctests pass after rebasing onto obs-media-io: reject duplicate inputs after scaler reentry #1534.
  • Self-disconnect, self-reconnect and scaler-creation regressions each pass 100 consecutive runs.

No public headers or existing C tests changed. PR CI supplies the unchanged C compatibility checks. Tier 4 does not apply to this internal video API.

@zackees
zackees force-pushed the fix/1535-video-self-disconnect branch from 292429a to fa32d39 Compare October 20, 2026 17:56
@zackees
zackees added this pull request to the merge queue Oct 20, 2026
Merged via the queue into master with commit 3143759 Oct 20, 2026
23 checks passed
@zackees
zackees deleted the fix/1535-video-self-disconnect branch October 26, 2026 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

bug: obs-media-io: deliver video after a callback disconnects

1 participant