[media] videobuf2-core: call __setup_offsets before buf_init()
authorHans Verkuil <hans.verkuil@cisco.com>
Fri, 20 Nov 2015 11:36:49 +0000 (09:36 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 18 Dec 2015 16:04:29 +0000 (14:04 -0200)
commit20eedf0e16918069241ec16b1bf003325016ed6e
tree9d3904f06cc2cc608994279abe9097a808ee683f
parente32f856ab29e9369c055e6b7f0e554c79341b1c6
[media] videobuf2-core: call __setup_offsets before buf_init()

Ensure that the offsets are correct before buf_init() is called.
As a consequence the __setup_offsets() function now sets up the
offsets for the given buffer instead of for all new buffers.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/v4l2-core/videobuf2-core.c