[Bug 706083] v4l2src: UVC Allocated buffers wrapped in GstBuffer get orphaned by GstBuffer API
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Fri Sep 20 05:38:33 PDT 2013
https://bugzilla.gnome.org/show_bug.cgi?id=706083
GStreamer | gst-plugins-good | git
--- Comment #31 from Robert Krakora <rob.krakora at messagenetsystems.com> 2013-09-20 12:38:27 UTC ---
For my own edification, I thought that using gst_buffer_replace_memory() would
kill two birds with one stone versus gst_buffer_remove_all_memory() and
gst_buffer_append_memory() as you used or am I missing something?
+ if (obj->type == V4L2_BUF_TYPE_VIDEO_CAPTURE) {
+ gst_buffer_remove_all_memory (outbuf);
+ gst_buffer_append_memory (outbuf,
+ gst_memory_new_wrapped (GST_MEMORY_FLAG_NO_SHARE,
+ meta->mem, vbuffer.length, 0, vbuffer.bytesused, NULL, NULL));
--
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