camera1394 icon indicating copy to clipboard operation
camera1394 copied to clipboard

Use poll() to wait for capture with timeout

Open leokoppel opened this issue 7 years ago • 0 comments

Before calling dc1394_capture_dequeue(), poll() for the frame to become available with a 500ms (arbitrary) timeout.

Fixes #48 (100% CPU use from constant polling), and is a different solution to #22.

It is the method "to cleanly stop a blocking capture" suggested in the libdc1394 FAQ which makes up for dc1394_capture_dequeue() having no timeout option.

leokoppel avatar Sep 03 '17 14:09 leokoppel