v4l2allocator: Use qdata instead of parenting to DmabufMemory
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Thu, 10 Jul 2014 22:11:20 +0000 (18:11 -0400)
committerSebastian Dröge <sebastian@centricular.com>
Fri, 11 Jul 2014 07:49:27 +0000 (09:49 +0200)
commit0ac0cbcc0eb3eb7ae5f07bc6c0d5ef6469d483ba
tree1de8f17977155d21a1d09c05a5ec3efa91f07e0d
parent7e40c74338019aa2ed7d748c17065945462aa049
v4l2allocator: Use qdata instead of parenting to DmabufMemory

Parenting V4l2Memory to DmabufMemory was in conflict with recent
optimization in DmabufMemory to avoid dup(), and didn't work with
memory sharing. Instead, use a qdata and it's destroy notify.

https://bugzilla.gnome.org/show_bug.cgi?id=730441
sys/v4l2/gstv4l2allocator.c
sys/v4l2/gstv4l2allocator.h
sys/v4l2/gstv4l2bufferpool.c