Start a new topic

select() and poll() not working with the v4l2 api

Hi! I'm trying to use the v4l2 api to read frames from one of the eight devices of a BC-H08480 card and although I can successfully get each frame by calling the VIDIOC_DQBUF ioctl (using the MMAP method), if I insert a select() call just before the VIDIOC_DQBUF to check for data availability, the select() blocks indefinitely as if it weren't data available.

I've re-checked all several times, and I don't know what could be wrong.

I've also tried poll()-ing, but it didn't work either (it also hangs forever).

Could this be a problem with the handling of these calls in the driver side?

Thank you very much,

Oriol

Login or Signup to post a comment