glmemory: allow sharing between buffers
authorMatthew Waters <matthew@centricular.com>
Tue, 24 Feb 2015 13:00:48 +0000 (00:00 +1100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:31:55 +0000 (19:31 +0000)
There was no real reason why the flag was set.  We should be able
to handle it.  Fixes last-sample handling on gl sinks

gst-libs/gst/gl/gstglmemory.c

index f940790..18a364b 100644 (file)
@@ -714,8 +714,8 @@ _gl_mem_init (GstGLMemory * mem, GstAllocator * allocator, GstMemory * parent,
 
   maxsize = gst_gl_get_plane_data_size (info, valign, plane);
 
-  gst_memory_init (GST_MEMORY_CAST (mem), GST_MEMORY_FLAG_NO_SHARE,
-      allocator, parent, maxsize, 0, 0, maxsize);
+  gst_memory_init (GST_MEMORY_CAST (mem), 0, allocator, parent, maxsize, 0, 0,
+      maxsize);
 
   mem->context = gst_object_ref (context);
   mem->tex_type =