Skip to content

fix: detect V4L2 capture devices by capability bits - #3

Merged
taigrr merged 1 commit into
masterfrom
cd/fix-capability-detection
Apr 20, 2026
Merged

fix: detect V4L2 capture devices by capability bits#3
taigrr merged 1 commit into
masterfrom
cd/fix-capability-detection

Conversation

@taigrr

@taigrr taigrr commented Apr 19, 2026

Copy link
Copy Markdown
Owner

Summary

  • detect capture devices by checking V4L2 capability bits instead of matching one exact value
  • respect the capabilities fallback when V4L2_CAP_DEVICE_CAPS is absent
  • close opened device handles and add regression tests for the capability parsing logic

Testing

  • go test ./...
  • go test -race ./...
  • go vet ./...
  • staticcheck ./...

@taigrr
taigrr merged commit bbe2973 into master Apr 20, 2026
1 check passed
@taigrr
taigrr deleted the cd/fix-capability-detection branch July 26, 2026 03:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant