Repository navigation
linux-v4l2: Fix virtual camera reset failures - #12510
Merged
Merged
Conversation
stephematician
force-pushed
the
vcam_fix
branch
from
December 24, 2025 04:54
b2d0fbc to
f7f91a9
Compare
Contributor
Author
|
Rebased onto master due to recent activity on https://obsproject.com/forum/threads/virtual-camera-only-works-once.193278/#post-697744 Confirm that this still provides a solution to the virtual camera reset issue #12506 |
Contributor
Author
|
@kkartaltepe - this should be an easy win/approve. Still, some testers would be nice. |
kkartaltepe
approved these changes
Dec 28, 2025
RytoEX
approved these changes
May 6, 2026
RytoEX
left a comment
Member
There was a problem hiding this comment.
Looks fine. For future reference, the project prefers US English spelling for text in code and commit messages, but I won't block on this here if the commit message is the same when I circle back around to merge.
Reverts much of PR obsproject#11906 in favor of a different way to detect whether or not the output capabilities must be reset. The new approach will contain false positives for which the workaround is not needed but it won't have negative side effects.
Contributor
Author
|
Corrected, thanks for the reminder. |
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.
Reverts much of PR #11906 in favour of a different way to detect whether or not the output capabilities must be reset.
The new approach will contain false positives for which the workaround is not needed but it won't have negative side effects.
Description
Removes the 'reset' capability workaround which failed in some cases; see #12506. Now the previous 'STREAMON' workaround is used provided a device for which a STREAMON succeeds when it shouldn't is found. This should be the case for any loopback device from 0.12.5 through to 0.13.2. For the 0.13.x loopback devices, the workaround is used, but unnecessary, and it has no ill side-effects in tests conducted.
Motivation and Context
See #12506
How Has This Been Tested?
Tested with loopback 0.12.5-0.12.7, and 0.13.2. Camera starts and stops, and can be viewed in other applications.
Types of changes
Checklist: