Skip to content

linux-v4l2: Fix missing fd close - #13295

Open
stephematician wants to merge 1 commit into
obsproject:masterfrom
stephematician:fix_v4l2_fd_close
Open

stephematician wants to merge 1 commit into
obsproject:masterfrom
stephematician:fix_v4l2_fd_close

Conversation

@stephematician

@stephematician stephematician commented Apr 6, 2026 •

Copy link
Copy Markdown
Contributor

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 kind/bug Categorizes issue or PR as related to a bug. platform/linux Categorizes issue or PR as affecting Linux specifically labels Apr 18, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug Categorizes issue or PR as related to a bug. platform/linux Categorizes issue or PR as affecting Linux specifically

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants