[Bug 583890] v4l2: Implement V4L2_MEMORY_USERPTR support

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Tue Jan 7 05:56:10 PST 2014


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

--- Comment #48 from Aurélien Zanelli <aurelien.zanelli at parrot.com> 2014-01-07 13:56:01 UTC ---
I finally success to play a video using your branch with v4l2sink using gst-omx
buffers.
It's gst_base_sink_set_last_buffer_unlocked() which increase the refcount of
the incoming buffer. So i disable the last-sample feature of the base sink
(with enable-last-sample property).
By doing so the incoming buffer has a refcount of one.
Also i found a little mistake in your code after "/* transfer userptr on the
fly */" ( v4l2bufferpool.c:gst_buffer_pool_process() ):
Whan the buffer doesn't contain meta. you call
"gst_v4l2_buffer_pool_add_meta_helper (pool, to_queue);" but you don'"t assign
the return value to meta. ie : it should be:

> if (!meta)
>   meta = gst_v4l2_buffer_pool_add_meta_helper (pool, to_queue);

-- 
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