diff options
author | Guennadi Liakhovetski <g.liakhovetski@gmx.de> | 2011-09-28 06:23:27 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-11-03 16:28:26 -0400 |
commit | 21db3e07e1c6302556ae3215ddf0539f5d763b62 (patch) | |
tree | 9829667577d14bac2a99c8dce54b6986281f4eda /drivers/media | |
parent | 2150158b31a3290cc883cf6dea4f5d6803b6b811 (diff) |
[media] V4L: videobuf2: update buffer state on VIDIOC_QBUF
V4L2 specification states, that the videobuffer state flags have to be
updated on VIDIOC_QBUF ioctl(). Videobuf2 currently doesn't do that,
which is fixed by this patch.
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/video/videobuf2-core.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/video/videobuf2-core.c b/drivers/media/video/videobuf2-core.c index b88b5b08792..82b51be3ca7 100644 --- a/drivers/media/video/videobuf2-core.c +++ b/drivers/media/video/videobuf2-core.c | |||
@@ -935,6 +935,9 @@ int vb2_qbuf(struct vb2_queue *q, struct v4l2_buffer *b) | |||
935 | if (q->streaming) | 935 | if (q->streaming) |
936 | __enqueue_in_driver(vb); | 936 | __enqueue_in_driver(vb); |
937 | 937 | ||
938 | /* Fill buffer information for the userspace */ | ||
939 | __fill_v4l2_buffer(vb, b); | ||
940 | |||
938 | dprintk(1, "qbuf of buffer %d succeeded\n", vb->v4l2_buf.index); | 941 | dprintk(1, "qbuf of buffer %d succeeded\n", vb->v4l2_buf.index); |
939 | return 0; | 942 | return 0; |
940 | } | 943 | } |