plugins: fix allocation of DMABUF memory.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Mon, 2 Mar 2015 10:12:53 +0000 (11:12 +0100)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Mon, 2 Mar 2015 12:41:29 +0000 (13:41 +0100)
commit8b91ddac0b888b532101b644abb88421e7834120
tree5643a7f9f7da4b309d219671bd583b12fe735b9d
parent3d8e5e59a72aafc5d06917a3b22006278697a7d7
plugins: fix allocation of DMABUF memory.

The dmabuf allocator would close the DMABUF handle passed in the init
function gst_dmabuf_allocator_alloc(). So, we need to dup() it so that
to avoid a double close, ultimately in the underlying driver that owns
the DMABUF handle.
gst/vaapi/gstvaapivideomemory.c