Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correctly resolve symlinks to device paths #355

Closed
wants to merge 0 commits into from

Conversation

FranzAlbers
Copy link
Contributor

With multiple cameras, it can be handy to set the video devices using the symlinks provided in /dev/v4l/by-id or /dev/v4l/by-path, because the IDs in /dev/video<ID> may change after a reboot. However, the relative paths from these symlinks are currently just appended to /dev/ and thus falsely resolved to /dev/../../video<ID>.

With this PR, symlinks located in another directory than /dev/ can be used for the video_device parameter.

@flynneva flynneva self-requested a review February 4, 2025 15:02
@flynneva
Copy link
Collaborator

flynneva commented Feb 4, 2025

Oops it looks like unrelated to this PR I've broken CI so that the tests are not actually ran 😅 I'll test this locally and fix CI when I have the chance, but overall this looks good. Thanks 🙏

@flynneva
Copy link
Collaborator

flynneva commented Feb 8, 2025

wait i didnt mean to close this, was just trying to rebase. sorry about that 😓

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.

2 participants