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

Use gst.DeviceMonitor to list video sources. #128

Merged
merged 2 commits into from
Aug 31, 2020

Conversation

igordsm
Copy link
Sponsor Contributor

@igordsm igordsm commented Aug 30, 2020

The current code list devices under /sys/class/video4linux, however some other devices (such as my touchpad) appear there. By using Gst.DeviceMonitor we can filter only devices that have the video/x-raw capability, resulting in simpler code and better detection (at least in my setup). This could also pave the path for implementing #59 and #41 , since we could add a watch to detect when new devices are added or removed and update the GUI and camera_view appropriately.

Copy link
Member

@tintou tintou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great improvement

@tintou tintou merged commit 0e295a2 into elementary:master Aug 31, 2020
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