projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49d8ab9
)
[media] media: videobuf2: last_buffer_queued is set at fill_v4l2_buffer()
author
Junghak Sung
<
[email protected]
>
Tue, 3 Nov 2015 10:16:40 +0000
(08:16 -0200)
committer
Mauro Carvalho Chehab
<
[email protected]
>
Fri, 18 Dec 2015 15:55:35 +0000
(13:55 -0200)
The location in which last_buffer_queued is set is moved to fill_v4l2_buffer().
So, __vb2_perform_fileio() can use vb2_core_dqbuf() instead of
vb2_internal_dqbuf().
Signed-off-by: Junghak Sung <
[email protected]
>
Signed-off-by: Geunyoung Kim <
[email protected]
>
Acked-by: Seung-Woo Kim <
[email protected]
>
Acked-by: Inki Dae <
[email protected]
>
Acked-by: Hans Verkuil <
[email protected]
>
Signed-off-by: Hans Verkuil <
[email protected]
>
Signed-off-by: Mauro Carvalho Chehab <
[email protected]
>
drivers/media/v4l2-core/videobuf2-v4l2.c
patch
|
blob
|
history
diff --git
a/drivers/media/v4l2-core/videobuf2-v4l2.c
b/drivers/media/v4l2-core/videobuf2-v4l2.c
index a6945eeef545e06c85af16de6f345b1c03c57590..91728c18430d82f662b58546cbc9ad76055946a6 100644
(file)
--- a/
drivers/media/v4l2-core/videobuf2-v4l2.c
+++ b/
drivers/media/v4l2-core/videobuf2-v4l2.c
@@
-270,6
+270,11
@@
static int __fill_v4l2_buffer(struct vb2_buffer *vb, void *pb)
if (vb2_buffer_in_use(q, vb))
b->flags |= V4L2_BUF_FLAG_MAPPED;
+ if (!q->is_output &&
+ b->flags & V4L2_BUF_FLAG_DONE &&
+ b->flags & V4L2_BUF_FLAG_LAST)
+ q->last_buffer_dequeued = true;
+
return 0;
}
@@
-617,10
+622,6
@@
static int vb2_internal_dqbuf(struct vb2_queue *q, struct v4l2_buffer *b,
ret = vb2_core_dqbuf(q, b, nonblocking);
- if (!ret && !q->is_output &&
- b->flags & V4L2_BUF_FLAG_LAST)
- q->last_buffer_dequeued = true;
-
return ret;
}