Skip to content

linux-v4l2: Fix missing fd close#13295

Open
stephematician wants to merge 1 commit intoobsproject:masterfrom
stephematician:fix_v4l2_fd_close
Open

linux-v4l2: Fix missing fd close#13295
stephematician wants to merge 1 commit intoobsproject:masterfrom
stephematician:fix_v4l2_fd_close

Conversation

@stephematician
Copy link
Copy Markdown
Contributor

@stephematician stephematician commented Apr 6, 2026

Description

close() the V4L2 device when we fail to get input capabilities when the format is selected.

Motivation and Context

I was looking for something that might explain #12508 - but still no luck. But at least I found this.

How Has This Been Tested?

Hasn't been tested - I would need a device that I can disable the input on: but it doesn't impact the case where the device can select input.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • My code has been run through clang-format.
  • I have read the contributing document.
  • My code is not on the master branch.
  • The code has been tested.
  • All commit messages are properly formatted and commits squashed where appropriate.
  • I have included updates to all appropriate documentation.

@WizardCM WizardCM added Bug Fix Non-breaking change which fixes an issue Linux Affects Linux labels Apr 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Bug Fix Non-breaking change which fixes an issue Linux Affects Linux

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants