base:tizenmemory: Remove GST_MEMORY_FLAG_NO_SHARE 11/276011/1 accepted/tizen/unified/20220610.134723 submit/tizen/20220609.013954
authorJeongmo Yang <jm80.yang@samsung.com>
Wed, 8 Jun 2022 11:14:37 +0000 (20:14 +0900)
committerJeongmo Yang <jm80.yang@samsung.com>
Wed, 8 Jun 2022 11:14:37 +0000 (20:14 +0900)
- It can cause memory copy when it's pushed to source plugin like appsrc.

[Version] 1.20.0-29
[Issue Type] Improvement

Change-Id: I23b9bd8921a223219dbae103ebcc72ae3d28475b
Signed-off-by: Jeongmo Yang <jm80.yang@samsung.com>
packaging/gstreamer.spec
subprojects/gst-plugins-base/gst-libs/gst/allocators/gsttizenmemory.c

index c0492f4..e2f2688 100644 (file)
@@ -60,7 +60,7 @@
 
 Name:           %{_name}
 Version:        1.20.0
-Release:        28
+Release:        29
 Summary:        Streaming-Media Framework Runtime
 License:        LGPL-2.0+
 Group:          Multimedia/Framework
index 222f8ec..741833d 100644 (file)
@@ -116,7 +116,7 @@ _tizen_video_mem_new (GstAllocator * allocator, GstMemory * parent, GstVideoInfo
 
   GST_VIDEO_INFO_SIZE (vinfo) = sinfo.size;
 
-  gst_memory_init (GST_MEMORY_CAST (tmem), GST_MEMORY_FLAG_NO_SHARE,
+  gst_memory_init (GST_MEMORY_CAST (tmem), 0,
     allocator, parent, GST_VIDEO_INFO_SIZE (vinfo), 0, 0,
     GST_VIDEO_INFO_SIZE (vinfo));
 
@@ -157,7 +157,7 @@ _tizen_video_mem_new2 (GstAllocator * allocator, GstMemory * parent, GstVideoInf
 
   tmem = g_slice_new0 (GstTizenMemory);
 
-  gst_memory_init (GST_MEMORY_CAST (tmem), GST_MEMORY_FLAG_NO_SHARE,
+  gst_memory_init (GST_MEMORY_CAST (tmem), 0,
     allocator, parent, bo_size, 0, 0, size);
 
   tmem->bo = bo;
@@ -611,7 +611,7 @@ gst_tizen_allocator_dmabuf_import (GstAllocator * allocator, gint * fds, gint pl
 
   mem = GST_MEMORY_CAST (tmem);
 
-  gst_memory_init (mem, GST_MEMORY_FLAG_NO_SHARE, allocator, NULL,
+  gst_memory_init (mem, 0, allocator, NULL,
       GST_VIDEO_INFO_SIZE (vinfo), 0, 0, GST_VIDEO_INFO_SIZE (vinfo));
 
   return NULL;