Skip to content

Commit

Permalink
[media] v4l2-ioctl: set readbuffers to 2 in g_parm
Browse files Browse the repository at this point in the history
If g_parm is handled automatically, then set readbuffers to 2, which is the
minimum number of buffers videobuf uses.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Hans Verkuil authored and Mauro Carvalho Chehab committed Jun 11, 2012
1 parent 3e1141e commit 0c142c8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/media/video/v4l2-ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1680,6 +1680,7 @@ static long __video_do_ioctl(struct file *file,
break;

ret = 0;
p->parm.capture.readbuffers = 2;
if (ops->vidioc_g_std)
ret = ops->vidioc_g_std(file, fh, &std);
if (ret == 0)
Expand Down

0 comments on commit 0c142c8

Please sign in to comment.