v4l2allocator: Fix freeing of shared memory
authorNicolas Dufresne <nicolas.dufresne@collabora.co.uk>
Sun, 15 Feb 2015 20:51:55 +0000 (15:51 -0500)
committerNicolas Dufresne <nicolas.dufresne@collabora.co.uk>
Sun, 15 Feb 2015 21:21:55 +0000 (16:21 -0500)
commitf5ef99fe5ee2d594fb876ba63c1dcd28d4d7d629
tree522b19620e08b0933976369c45784a1e07888493
parentafa5481c5016b1ae45fa72648fd5df33375feb54
v4l2allocator: Fix freeing of shared memory

When memory (that has been shared using gst_memory_share()) are freed,
the memory (or the DMABUF FD) should not bee freed. These memories have
a parent. This also removes the extra _v4l2mem_free function and avoid
calling close twice on the DMABUF FD.

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