eglglessink: gst_buffer_pool_config_get_allocator() does *not* return a new reference...
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 7 Mar 2013 10:50:00 +0000 (11:50 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Thu, 7 Mar 2013 10:51:06 +0000 (11:51 +0100)
Different to gst_query_get_n_allocation_params() which does

ext/eglgles/gsteglglessink.c

index 70643a119c1b1afdfcfa8cb1a0872e1cd2fa7f7b..c80caafb48fcf745256d53b22a1c23e755835702 100644 (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,