kmssink: Fix offsets handling
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Mon, 11 Jul 2016 15:58:12 +0000 (11:58 -0400)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Mon, 11 Jul 2016 16:07:04 +0000 (12:07 -0400)
commitf03fc663ef6b1032da9b5242d7c15e7c31323b53
tree987d781feb7b949fb834c8b42169d1cc54f2083b
parenta3d58818e812ae1c7f10dcfc6d00e8368c6735ec
kmssink: Fix offsets handling

The calculation of the offset table was done base on a plane size
estimation. This does not always work. Instead, use memory offset the
same we as it's implement in GstVideoMeta map functions.
sys/kms/gstkmsallocator.c
sys/kms/gstkmsallocator.h
sys/kms/gstkmssink.c