Repository navigation
obs-media-io: deliver video after a callback disconnects - #1539
Merged
Merged
Conversation
zackees
enabled auto-merge
October 20, 2026 17:34
This was referenced Oct 20, 2026
zackees
force-pushed
the
fix/1535-video-self-disconnect
branch
from
October 20, 2026 17:56
292429a to
fa32d39
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
f8085ab18:self_disconnect_still_delivers_following_inputfails before the delivery fix.8fba33243:self_reconnect_waits_for_the_next_framedetects repeated delivery to the reconnected pair.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.