[Bug 768794] ion: DMA Buf allocator based on ion

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Fri Nov 18 10:06:47 UTC 2016


https://bugzilla.gnome.org/show_bug.cgi?id=768794

--- Comment #19 from kevin <kevinbing.song at gmail.com> ---
After changed dmabuf allocator to sub-classable. Below function need changed
too. Below function needn't allocate GstFdMemory, it should use received
GstMemory from input parameter. And the user of the function need modify. such
as v4l2 element, kmssink.

GstMemory *
gst_fd_allocator_alloc (GstAllocator * allocator, gint fd, gsize size,
    GstFdMemoryFlags flags)
{
#ifdef HAVE_MMAP
  GstFdMemory *mem;

  g_return_val_if_fail (GST_IS_FD_ALLOCATOR (allocator), NULL);

  mem = g_slice_new0 (GstFdMemory);
  gst_memory_init (GST_MEMORY_CAST (mem), 0, GST_ALLOCATOR_CAST (allocator),
      NULL, size, 0, 0, size);
}

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list