plugins: fix ref counting of GstVaapiVideoMemory allocator.
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>
Fri, 12 Jul 2013 15:14:49 +0000 (17:14 +0200)
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>
Fri, 12 Jul 2013 15:14:49 +0000 (17:14 +0200)
commitc82a1bc0ff4339a150cf4e8f8075d51ba49c50f8
tree71174e9581a3b2bad7a1e048b4b4ae631aea0467
parentd79d561819277cc24818a3106080258d32755c89
plugins: fix ref counting of GstVaapiVideoMemory allocator.

Fix reference counting issue whereby gst_memory_init() does not hold
an extra reference to the GstAllocator. So, there could be situations
where the last instance of GstVaapiVideoAllocator gets released before
a dangling GstVaapiVideoMemory object, thus possibly leading to a crash.
gst/vaapi/gstvaapivideomemory.c