media: mfc: Fix the reference count pair.
authorJeonghee Kim <jhhhh.kim@samsung.com>
Thu, 8 Mar 2018 09:31:09 +0000 (18:31 +0900)
committerSunyoung Kang <sy0816.kang@samsung.com>
Tue, 29 May 2018 06:59:18 +0000 (15:59 +0900)
commit38f25a09d4bf36ba4ca183cf8d9425f61c969764
tree4ce3b251e03ef44e3ae8bfaa4d48650c97fb12bb
parent294266796cfe24eb642e8e267348901bf2014752
media: mfc: Fix the reference count pair.

When decoding and display status,
the release information of the referenced buffers without display should not be updated.
It will be reused.

When decoding only status,
the release information of the referenced buffers(except for reused buffer)
should be left to update when displayed.
It is an already displayed buffer.

Change-Id: I37df2bfd9d6cd3defde26edf1f2ac46ebb42ae8e
Signed-off-by: Jeonghee Kim <jhhhh.kim@samsung.com>
drivers/media/platform/exynos/mfc/s5p_mfc_irq.c
drivers/media/platform/exynos/mfc/s5p_mfc_nal_q.c
drivers/media/platform/exynos/mfc/s5p_mfc_queue.c
drivers/media/platform/exynos/mfc/s5p_mfc_queue.h