libgstgl: set user data and GDestroyNotify for wrapped textures
authorAlessandro Decina <alessandro.d@gmail.com>
Mon, 9 Feb 2015 09:44:50 +0000 (20:44 +1100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:31:54 +0000 (19:31 +0000)
gst-libs/gst/gl/gstglmemory.c

index bca13cec1e154e68248f5a31f61483aa6c8a27cb..19aa47d88dd449395eab094d886d1f3339ba0e77 100644 (file)
@@ -1234,8 +1234,8 @@ gst_gl_memory_wrapped_texture (GstGLContext * context,
   GstGLMemory *mem;
 
   mem = g_slice_new0 (GstGLMemory);
-  _gl_mem_init (mem, _gl_allocator, NULL, context, info, valign, plane, NULL,
-      NULL);
+  _gl_mem_init (mem, _gl_allocator, NULL, context, info, valign, plane,
+      user_data, notify);
 
   mem->tex_id = texture_id;
   mem->tex_target = texture_target;