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:
2c06aa7
)
media: dvb_vb2: Use the sanitized value after processed by VB2 core
author
Mauro Carvalho Chehab
<
[email protected]
>
Thu, 28 Dec 2017 14:03:21 +0000
(09:03 -0500)
committer
Mauro Carvalho Chehab
<
[email protected]
>
Thu, 28 Dec 2017 16:17:28 +0000
(11:17 -0500)
if the number of buffers requested by the user is too big, the
VB core will truncate to a valid value.
Use it, instead of what the user requested.
Signed-off-by: Mauro Carvalho Chehab <
[email protected]
>
drivers/media/dvb-core/dvb_vb2.c
patch
|
blob
|
history
diff --git
a/drivers/media/dvb-core/dvb_vb2.c
b/drivers/media/dvb-core/dvb_vb2.c
index 4223d33c60dc1b695dabcb51d66912680b694f33..f1e12a87a92e279e09d72d017cef048386a98797 100644
(file)
--- a/
drivers/media/dvb-core/dvb_vb2.c
+++ b/
drivers/media/dvb-core/dvb_vb2.c
@@
-35,7
+35,7
@@
static int _queue_setup(struct vb2_queue *vq,
{
struct dvb_vb2_ctx *ctx = vb2_get_drv_priv(vq);
-
*nbuffers = ctx->buf_cnt
;
+
ctx->buf_cnt = *nbuffers
;
*nplanes = 1;
sizes[0] = ctx->buf_siz;