mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] media: s5p-mfc: set V4L2_BUF_FLAG_LAST flag on final buffer
@ 2020-05-02 19:40 Andriy Gelman
  2020-06-02 15:09 ` Nicolas Dufresne
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Andriy Gelman @ 2020-05-02 19:40 UTC (permalink / raw)
  Cc: Andriy Gelman, Kyungmin Park, Kamil Debski, Jeongtae Park,
	Andrzej Hajda, Mauro Carvalho Chehab, linux-arm-kernel,
	linux-media, linux-kernel

From: Andriy Gelman <andriy.gelman@gmail.com>

As per V4L2 api, the final buffer should set V4L2_BUF_FLAG_LAST flag.

Signed-off-by: Andriy Gelman <andriy.gelman@gmail.com>
---
 drivers/media/platform/s5p-mfc/s5p_mfc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/media/platform/s5p-mfc/s5p_mfc.c b/drivers/media/platform/s5p-mfc/s5p_mfc.c
index 5c2a23b953a4..b3d9b3a523fe 100644
--- a/drivers/media/platform/s5p-mfc/s5p_mfc.c
+++ b/drivers/media/platform/s5p-mfc/s5p_mfc.c
@@ -614,6 +614,7 @@ static void s5p_mfc_handle_stream_complete(struct s5p_mfc_ctx *ctx)
 		list_del(&mb_entry->list);
 		ctx->dst_queue_cnt--;
 		vb2_set_plane_payload(&mb_entry->b->vb2_buf, 0, 0);
+		mb_entry->b->flags |= V4L2_BUF_FLAG_LAST;
 		vb2_buffer_done(&mb_entry->b->vb2_buf, VB2_BUF_STATE_DONE);
 	}
 
-- 
2.25.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-01-28 10:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-02 19:40 [PATCH] media: s5p-mfc: set V4L2_BUF_FLAG_LAST flag on final buffer Andriy Gelman
2020-06-02 15:09 ` Nicolas Dufresne
2020-09-17  8:48   ` Hans Verkuil
2020-09-17 12:52   ` Tomasz Figa
2020-09-17  8:48 ` Hans Verkuil
2022-01-28 10:13 ` Hans Verkuil

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®