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

Poll for new frames with pselect and add timeout #32

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

spebern
Copy link

@spebern spebern commented Nov 15, 2021

This pull request waits for polls readiness with pselect and adds a timeout parameter in the Config. This has two advantages:

  1. Without pselect the capture function blocks forever when a camera is unplugged and there is no way to support hotplug.
  2. We can support a timeout in the config

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