[Bug 664720] New: API: add gst_buffer_{set,get}_qdata()
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Thu Nov 24 04:20:52 PST 2011
https://bugzilla.gnome.org/show_bug.cgi?id=664720
GStreamer | gstreamer (core) | git
Summary: API: add gst_buffer_{set,get}_qdata()
Classification: Platform
Product: GStreamer
Version: git
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: Normal
Component: gstreamer (core)
AssignedTo: gstreamer-bugs at lists.freedesktop.org
ReportedBy: t.i.m at zen.co.uk
QAContact: gstreamer-bugs at lists.freedesktop.org
GNOME version: ---
Created an attachment (id=202055)
View: https://bugzilla.gnome.org/attachment.cgi?id=202055
Review: https://bugzilla.gnome.org/review?bug=664720&attachment=202055
buffer: add gst_buffer_{set,get}_qdata()
Allows people/us to attach arbitrary metadata to buffers without creating a
subclass, which is handy for all kinds of things.
This is on GstBuffer and not GstMiniObject because it only really makes sense
with buffers, and because all the conceptual bits of metadata writability and
metadata copying are part of GstBuffer.
The cost of this should be negligible when not used (just extends the malloc
sizeof the buffer object by sizeof(gpointer)). I opted for a private struct
instead of just using the reserved field directly so we still have one public
pointer left for public things.
(gtk-doc Since: markers will be fixed up before commit, obviously)
--
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