dmabuf: fix mmap counting
authorMichael Olbrich <m.olbrich@pengutronix.de>
Fri, 23 Aug 2013 16:06:36 +0000 (18:06 +0200)
committerSebastian Dröge <slomo@circular-chaos.org>
Mon, 26 Aug 2013 07:29:32 +0000 (09:29 +0200)
commit3c66c2a43d6f189b07ab682b4d23db04ade9acbc
tree4c1ae62cbf1d5f95534c308ef5cb74a848291a01
parent48b8e61334d965239bb1d1c581fba471e588d249
dmabuf: fix mmap counting

A successful gst_dmabuf_mem_map must always increment the mmap count.
Otherwise the first gst_dmabuf_mem_unmap will unmap the memory and all
other user will access unmapped memory.

https://bugzilla.gnome.org/show_bug.cgi?id=706680
gst-libs/gst/allocators/gstdmabuf.c