Repository navigation
Conversation
WizardCM
reviewed
Nov 8, 2026
WizardCM
left a comment
Member
There was a problem hiding this comment.
Commit prefix for this should be linux-v4l2:
Author
Sorry about this, I changed it accordingly. |
WizardCM
approved these changes
Nov 8, 2026
WizardCM
left a comment
Member
There was a problem hiding this comment.
I have confirmed the original bug with a C920 and verified that this PR fixes the issue.
This branch has not been deployed
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.
Description
Fix for the issue #13896 that I had myself as well. The problem was actually occuring on all the Webcam I tested (Logitech StreamCam, Logitech C920, multiple HDMI acquisition cards)
It was caused by a buffer overflow from int64 to int. This is a one-line fix.
Motivation and Context
Motivation: it was very annoying 😆.
Due to a misconfigured framerate being encoded, any change to the options would force a restart of the video capture, which was most of the time completely unnecessary, and broke focus or mouse drags on the UI sliders.
How Has This Been Tested?
I tested it on Ubuntu 26.04 with OBS 33.0.1 as the base version, with a C920 for the video capture source.
This unique change fixed 90% of the problems. I noticed that when the Auto White balance or Auto Focus are checked, the associated sliders still misbehave, but I prefer to split these problems in two, as this fix is probably a no-brainer.
Types of changes
Checklist:
I have read the contributing document.
My code has been run through clang-format.
My code follows the project's style guidelines
My code is not on the master branch.
My code has been tested.
All commit messages are properly formatted and commits squashed where appropriate.
I have included updates to all appropriate documentation.
I did it all by myself 🧠, no AI involved whatsoever.