Skip to content

Poll for new frames with pselect and add timeout#32

Open
spebern wants to merge 2 commits intoloyd:masterfrom
spebern:master
Open

Poll for new frames with pselect and add timeout#32
spebern wants to merge 2 commits intoloyd:masterfrom
spebern:master

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