This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

endless waiting in vidioc_dqbuf

when calling ioctl(fdCapture, VIDIOC_DQBUF, &buf) in CaptureFrame() , my program went into an endless waiting. by debugging , I found that  in in video-buf.c , if (vb->state == STATE_ACTIVE || vb->state == STATE_QUEUED) schedule();  my program was blocked here.

Wanna know if there are some possible reasons causing this blocking.