s5p-mfc: use MFC_BUF_FLAG_EOS to identify last buffers in decoder capture queue
authorAndrzej Hajda <a.hajda@samsung.com>
Thu, 3 Sep 2015 12:41:22 +0000 (14:41 +0200)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 14 Dec 2016 04:48:01 +0000 (13:48 +0900)
commitacf123aae0988b63b827c379325adb235e5f04a0
treeabb2158d6ae1d0f7c65e8669add3b4d738c8c9e4
parent2c4b5d656790d0c392c2dafc0f40723007758e5a
s5p-mfc: use MFC_BUF_FLAG_EOS to identify last buffers in decoder capture queue

MFC driver never delivered EOS event to apps feeding constantly its capture
buffer with fresh buffers. The patch fixes it by marking last buffers returned
by MFC with MFC_BUF_FLAG_EOS flag and firing EOS event on de-queuing such
buffers.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
drivers/media/platform/s5p-mfc/s5p_mfc.c
drivers/media/platform/s5p-mfc/s5p_mfc_dec.c