[Bug 691712] [API] codecparsers: add GstMetas to pass parsing results downstream

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Thu Jul 18 11:22:30 PDT 2013


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

--- Comment #23 from Tim-Philipp Müller <t.i.m at zen.co.uk> 2013-07-18 18:22:14 UTC ---
Yeah, seems so, but at least we can avoid the dynamic allocation for each
SliceInfo.

It might also be possible to do something like expose a NULL-terminated
GstMpegVideoMetaSliceInfo ** in the structure instead of a GArray (I *think*
g-i handles NULL-terminated pointer arrays fine, just not if it needs to get
the size of the array from a different structure member). Then you could
basically do g_malloc (sizeof (gpointer) * (num_slices + 1) + align +
(num_slices * sizeof (SliceInfo)) or so, that you just use one malloc
altogether, and the pointers point into the same allocation block or so. (I
hope I'm not terribly confused now, in which case please don't laugh).

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