[gstreamer-bugs] [Bug 545501] Unable to get the parent of a GstSubBuffer
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Mon Feb 8 17:34:32 PST 2010
https://bugzilla.gnome.org/show_bug.cgi?id=545501
GStreamer | gstreamer (core) | git
Rob Clark <rob> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |rob at ti.com
--- Comment #11 from Rob Clark <rob at ti.com> 2010-02-09 01:34:26 UTC ---
heh, I just ran into exact same issue w/ v4l2sink. And even in a pipeline
without a tee, since gst_mini_object_free() increments the refcnt before
calling finalize function (which puts buffer back on queue making it available
to thread calling _buffer_alloc())
for now I just check:
if (buf->parent &&
(GST_BUFFER_DATA (buf) == GST_BUFFER_DATA (buf->parent)) &&
(GST_BUFFER_SIZE (buf) == GST_BUFFER_SIZE (buf->parent))) {
....
}
it's a bit ugly.. it might be nice to have a better API to tell me the same
thing, that it's a sub-buf w/ offset of zero and size equal to original buffer.
Or even better if it was somehow transparent..
--
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