Repository navigation
obs-media-io: restore scaler buffers to their original registration - #1544
Merged
Merged
Conversation
zackees
force-pushed
the
fix/1535-video-self-disconnect
branch
from
October 20, 2026 17:56
292429a to
fa32d39
Compare
zackees
force-pushed
the
fix/1540-scaler-buffer-identity
branch
from
October 20, 2026 17:58
a22bc3a to
cc78235
Compare
zackees
changed the base branch from
fix/1535-video-self-disconnect
to
master
October 20, 2026 18:26
zackees
force-pushed
the
fix/1540-scaler-buffer-identity
branch
from
October 20, 2026 18:26
cc78235 to
8c0d6eb
Compare
zackees
marked this pull request as ready for review
October 20, 2026 18:38
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.
Disconnecting and reconnecting an input during scaling can reuse its callback and parameter. Restoring the old scaler buffer by those fields inserts it into the replacement and panics the video thread. Keep the registration identity through scaling and restore buffers only to that original registration.
Fixes #1540. Split from #1462. This PR contains only the buffer-ownership issue; the callback-delivery fix (#1539) is already on master.
Validation:
ecb36cc80b27b5ae743df898ef75da450ba2ec3d:soldr cargo test -p obs-media-io replaced_input_does_not_receive_old_scaler_buffers -- --test-threads=1reproduces the insertion-index panic.