plugins: fix memory leaks through GstVideoMeta maps.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Thu, 28 Nov 2013 18:08:28 +0000 (19:08 +0100)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Thu, 28 Nov 2013 18:08:28 +0000 (19:08 +0100)
commit84b3f84925cc3d12eb949a283534e3d1e0761902
treecabe46d4b05f2913822393a19551296903a2d45f
parent9ab6037847d516898cd30458d197f27d1596a18d
plugins: fix memory leaks through GstVideoMeta maps.

When GstVideoMeta maps were used, the supporting functions incorrectly
used gst_buffer_get_memory() instead of gst_buffer_peek_memory(), thus
always increasing the associated GstMemory reference count and giving
zero chance to actually release that, and subsequently the VA display.
gst/vaapi/gstvaapivideomemory.c