[media] media: vb2: fix incorrect v4l2_buffer->flags handling
authorMarek Szyprowski <m.szyprowski@samsung.com>
Tue, 12 Apr 2011 13:14:13 +0000 (10:14 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 19 Apr 2011 19:07:15 +0000 (16:07 -0300)
commitea42c8ecb2ff998b8f71e0a5f9d2748a65cb8f04
tree51d6d122ada242bc86ea21b5a440a4dd779601e8
parent89582654ee3d1d76e153212c88daa6aa6c024fec
[media] media: vb2: fix incorrect v4l2_buffer->flags handling

Videobuf2 core assumes that driver doesn't set any buffer flags.
This is correct for buffer state flags that videobuf2 manages,
but the other flags like V4L2_BUF_FLAG_{KEY,P,B}FRAME,
V4L2_BUF_FLAG_TIMECODE and V4L2_BUF_FLAG_INPUT should be passed from or to
the driver.

Reported-by: Jonghun Han <jonghun.han@samsung.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
CC: Pawel Osciak <pawel@osciak.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/videobuf2-core.c