[gstreamer-bugs] [Bug 545501] Unable to get the parent of a GstSubBuffer

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Tue Mar 23 06:27:58 PDT 2010


https://bugzilla.gnome.org/show_bug.cgi?id=545501
  GStreamer | gstreamer (core) | git

--- Comment #14 from Rob Clark <rob at ti.com> 2010-03-23 13:27:49 UTC ---
(In reply to comment #13)
> I'm not quite sure what kind of semantics are needed. 

What about some sort of clone() method, to allow creating a new instance of the
same type of buffer..

so if gst_buffer_create_sub (buf, 0, GST_BUFFER_SIZE (buf)) could return a
buffer that is the same GType as the original buffer, then it would be somewhat
transparent to the receiver of the buffer that a new subbuffer was created.

(On the other hand, it might require any video sink that implements a buffer
pool would have to add a new virtual method to their GstBuffer subclass.. or at
least somehow handle the fact in it's finalize method that the buffer being
finalized could be a clone.. so I guess that doesn't make it completely
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