From dedb95dc6face4941eb674fc79efdc9eb5fa9390 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Tue, 24 Dec 2013 23:15:28 +0000 Subject: [PATCH] mfc: fix input dequeue for odroid https://bugzilla.gnome.org/show_bug.cgi?id=721027 --- sys/mfc/mfc_decoder/mfc_decoder.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sys/mfc/mfc_decoder/mfc_decoder.c b/sys/mfc/mfc_decoder/mfc_decoder.c index b050ded009..0e50c512a1 100644 --- a/sys/mfc/mfc_decoder/mfc_decoder.c +++ b/sys/mfc/mfc_decoder/mfc_decoder.c @@ -529,9 +529,14 @@ int mfc_dec_enqueue_input(struct mfc_dec_context *ctx, struct mfc_buffer *buffer static int input_dqbuf(struct mfc_dec_context *ctx, struct mfc_buffer **buffer) { + struct v4l2_plane planes[NUM_INPUT_PLANES] = {{.length = 0}}; struct v4l2_buffer qbuf = { .type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE, .memory = V4L2_MEMORY_MMAP, + .length = NUM_INPUT_PLANES, + .m = { + .planes = planes, + } }; struct pollfd fd = { .fd = ctx->fd,