From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tretter Subject: [PATCH v3 5/7] [media] coda: fix frame index to returned error Date: Mon, 2 Jan 2017 14:23:50 +0100 Message-ID: <20170102132352.23669-6-m.tretter@pengutronix.de> References: <20170102132352.23669-1-m.tretter@pengutronix.de> Return-path: In-Reply-To: <20170102132352.23669-1-m.tretter-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org> Sender: devicetree-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: linux-media-u79uwXL29TY76Z2rM5mHXA@public.gmane.org Cc: Philipp Zabel , devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Hans Verkuil , Mauro Carvalho Chehab , kernel-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org, Michael Tretter List-Id: devicetree@vger.kernel.org display_idx refers to the frame that will be returned in the next round. The currently processed frame is ctx->display_idx and errors should be reported for this frame. Signed-off-by: Michael Tretter Acked-by: Philipp Zabel --- drivers/media/platform/coda/coda-bit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/coda/coda-bit.c b/drivers/media/platform/coda/coda-bit.c index b6625047250d..309eb4eb5ad1 100644 --- a/drivers/media/platform/coda/coda-bit.c +++ b/drivers/media/platform/coda/coda-bit.c @@ -2057,7 +2057,7 @@ static void coda_finish_decode(struct coda_ctx *ctx) } vb2_set_plane_payload(&dst_buf->vb2_buf, 0, payload); - coda_m2m_buf_done(ctx, dst_buf, ctx->frame_errors[display_idx] ? + coda_m2m_buf_done(ctx, dst_buf, ctx->frame_errors[ctx->display_idx] ? VB2_BUF_STATE_ERROR : VB2_BUF_STATE_DONE); v4l2_dbg(1, coda_debug, &dev->v4l2_dev, -- 2.11.0 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html