Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0c142c86 authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab
Browse files

[media] v4l2-ioctl: set readbuffers to 2 in g_parm



If g_parm is handled automatically, then set readbuffers to 2, which is the
minimum number of buffers videobuf uses.

Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 3e1141e2
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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)