rscam
rscam copied to clipboard
Poll for new frames with pselect and add timeout
This pull request waits for polls readiness with pselect
and adds a timeout
parameter in the Config
. This has two advantages:
- Without pselect the capture function blocks forever when a camera is unplugged and there is no way to support hotplug.
- We can support a timeout in the config