[Bug 730441] dmabuf: shared the mapping with shared copies of the memory

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Fri Jul 11 05:27:53 PDT 2014


https://bugzilla.gnome.org/show_bug.cgi?id=730441
  GStreamer | gst-plugins-base | git

--- Comment #12 from Nicolas Dufresne <nicolas.dufresne at collabora.co.uk> 2014-07-11 12:27:46 UTC ---
(In reply to comment #10)
> The patch for gstdmabuf.c looks good and I didn't see any regessions with it.
> But I wonder if this could be solved differently:
> 
> delegate _get_fd() to the parent if fd == -1 and delegate _map()/_unmap() only
> to the parent if fd == -1
> 
> That should fix _get_fd() and make parenting V4l2Memory to DmabufMemory
> possible.

That does not work if you share the memory. You will end up calling
gst_dmabuf_get_fd () on a GstV4l2Memory. Also _map()/_unmap() is not implement
for GstV4l2Memory (with DMABUF), so cannot be delagated.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- 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