eglglessink: gst_buffer_pool_config_get_allocator() does *not* return a new reference to the allocator

Different to gst_query_get_n_allocation_params() which does
This commit is contained in:
Sebastian Dröge 2013-03-07 11:50:00 +01:00
parent 02f244f650
commit 0931724767

View file

@ -3373,6 +3373,8 @@ gst_egl_image_buffer_pool_set_config (GstBufferPool * bpool,
if (!gst_buffer_pool_config_get_allocator (config, &pool->allocator,
&pool->params))
return FALSE;
if (pool->allocator)
gst_object_ref (pool->allocator);
pool->add_metavideo =
gst_buffer_pool_config_has_option (config,