summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2016-04-13 14:09:00 +0200
committerVíctor Manuel Jáquez Leal <victorx.jaquez@intel.com>2016-04-13 19:23:46 +0200
commit2b36eb517f156e3976d6b9fdc3cdbfda59cbba59 (patch)
tree51b23ad42428dfa0dc9f428229c5f905463501a2
parenta7b15c058c79c47173a6f7588dbf7c1d17e121b2 (diff)
libs: fix deleting a GstVaapiCodedBufferPool object
Call gst_vaapi_video_pool_finalize() in coded_buffer_pool_finalize(). Otherwise it is not called when the pool is destroyed and all objects referenced by the GstVaapiVideoPool are never released. https://bugzilla.gnome.org/show_bug.cgi?id=764993
-rw-r--r--gst-libs/gst/vaapi/gstvaapicodedbufferpool.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapicodedbufferpool.c b/gst-libs/gst/vaapi/gstvaapicodedbufferpool.c
index e2475536..a46d5016 100644
--- a/gst-libs/gst/vaapi/gstvaapicodedbufferpool.c
+++ b/gst-libs/gst/vaapi/gstvaapicodedbufferpool.c
@@ -54,6 +54,7 @@ coded_buffer_pool_init (GstVaapiCodedBufferPool * pool,
static void
coded_buffer_pool_finalize (GstVaapiCodedBufferPool * pool)
{
+ gst_vaapi_video_pool_finalize (GST_VAAPI_VIDEO_POOL (pool));
gst_vaapi_object_replace (&pool->context, NULL);
}