plugins: fix buffer pool reset_buffer() to reset memory resources.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 9 Oct 2013 07:47:18 +0000 (09:47 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Wed, 9 Oct 2013 16:30:06 +0000 (18:30 +0200)
commitf361d4a23d38ae180cdfbcaea9abddc7dc74aeca
treee9a6fd4580eeed5bb34e236c5f49f884c3571233
parent4df68163dcd5f58e7b7e9bf6909d61be1658f30c
plugins: fix buffer pool reset_buffer() to reset memory resources.

Fix GstVaapiVideoBufferPool::reset_buffer() to reset the underlying
memory resources, and more particularly the VA surface proxy. Most
importantly, the GstVaapiVideoMeta is retained. Cached surface in
memory are released, thus triggering a new allocation the next time
we need to map the buffer.
gst/vaapi/gstvaapivideobufferpool.c
gst/vaapi/gstvaapivideomemory.c
gst/vaapi/gstvaapivideomemory.h