Skip to content
Snippets Groups Projects
Commit d3d93886 authored by Benjamin Gaignard's avatar Benjamin Gaignard
Browse files

media: verisilicon: Stop direct calls to queue num_buffers field


Use vb2_get_num_buffers() to avoid using queue num_buffers field directly.

Signed-off-by: default avatarBenjamin Gaignard <benjamin.gaignard@collabora.com>
CC: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
parent ff316ae9
No related branches found
No related tags found
No related merge requests found
......@@ -195,7 +195,7 @@ int hantro_postproc_alloc(struct hantro_ctx *ctx)
struct hantro_dev *vpu = ctx->dev;
struct v4l2_m2m_ctx *m2m_ctx = ctx->fh.m2m_ctx;
struct vb2_queue *cap_queue = &m2m_ctx->cap_q_ctx.q;
unsigned int num_buffers = cap_queue->num_buffers;
unsigned int num_buffers = vb2_get_num_buffers(cap_queue);
struct v4l2_pix_format_mplane pix_mp;
const struct hantro_fmt *fmt;
unsigned int i, buf_size;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment