plugins: create a proxy for GstVaapiUploader allocated buffers.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Fri, 4 Oct 2013 17:34:32 +0000 (19:34 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Fri, 4 Oct 2013 17:34:32 +0000 (19:34 +0200)
commitcc9afca3edf74a821e337b46d6bf383eff0fcac0
treeb484a0ad194e806d87ef9a58c975783a2387809e
parent393e86e3d0a8e8431e44979faffcb075a97b92ae
plugins: create a proxy for GstVaapiUploader allocated buffers.

Always make sure to allocate a VA surface proxy for GstVaapiUploader
allocated buffers, i.e. make gst_vaapi_uploader_get_buffer() allocate
a proxy surface.

This fixes cases where we want to retain the underlying surface longer,
instead of releasing it back to the surface pool right away.
gst/vaapi/gstvaapiuploader.c