[COMMON] media: videobuf2-v4l2: fix bug for multiplane
authorWon Jung <w00.jung@samsung.com>
Thu, 26 May 2016 13:19:35 +0000 (22:19 +0900)
committerSeungchul Kim <sc377.kim@samsung.com>
Mon, 28 May 2018 05:28:39 +0000 (14:28 +0900)
commit17b8c93b5b0fea456945bfe74f8b3de2f399fcd5
tree4992318d39f67c6bc79ebc5cc0af52e97f86d423
parentf452cb18862ec4aaddf66efe9e956d70b969b8e1
[COMMON] media: videobuf2-v4l2: fix bug for multiplane

In __fill_v4l2_buffer, q->is_multiplaner is used
to check whether multiplane is requested.
However, at this point, do not refer the condition
because it is not determined yet.
Therefore, using the macro, V4L2_TYPE_IS_MULTIPLANAR(), and
type, the member value in struct v4l2_buffer, the condition
(multiplane) is checked.

Change-Id: I84ce7a39020de53423ba094dd10fc712deba8d1b
Signed-off-by: Won Jung <w00.jung@samsung.com>
drivers/media/v4l2-core/videobuf2-v4l2.c