From fba2a2093fb5a30acae544c675420dcc431a731b Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Wed, 25 Feb 2015 00:00:48 +1100 Subject: [PATCH] glmemory: allow sharing between buffers 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gst-libs/gst/gl/gstglmemory.c b/gst-libs/gst/gl/gstglmemory.c index f9407900d4..18a364b517 100644 --- a/gst-libs/gst/gl/gstglmemory.c +++ b/gst-libs/gst/gl/gstglmemory.c @@ -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 =