Alex.F
Alex.F

Reputation: 11

V4L2 invalid argument for the ioctl of DQBUF

I came across a V4L2 problem.Below is the code.

v4l2_buffer queue_buf;
CLEAR(queue_buf);

queue_buf.type = V4L2_BUF_TYPE_VIDEO_CAPTURE;
queue_buf.memory = V4L2_MEMORY_MMAP;

if(-1 == ioctl(fd, VIDIOC_DQBUF, &queue_buf))
{
    perror("dqbuf:");
}

When run on ARM 2440 with linux 2.6.24, arm-linux-gcc 3.4.1, the error is "dqbuf: invalid argument".But on my PC, it works well. I don't know why it happened. thx.

Upvotes: 1

Views: 3093

Answers (1)

Ronny Brendel
Ronny Brendel

Reputation: 4845

v4l problems are very specific and I had trouble finding help myself, some time ago.

So here are some links where you should be searching for help:

I hope this helps.

regards.

Upvotes: 1

Related Questions