[gstreamer-bugs] [Bug 638987] New: GstIterator needs a registered type
bugzilla at gnome.org
Sat Jan 8 03:26:57 PST 2011
GStreamer | gstreamer (core) | git
Summary: GstIterator needs a registered type
Component: gstreamer (core)
AssignedTo: gstreamer-bugs at lists.sourceforge.net
ReportedBy: johan at gnome.org
QAContact: gstreamer-bugs at lists.sourceforge.net
GNOME target: ---
GNOME version: ---
GstIterator should be supported by gobject-introspection, the easiest way
of doing it is registering a GType for it.
GBoxed would be the most obvious choice but it requires that the size of the
GstIterator struct is known to be able to implement the GBoxedCopyFunc
That might require ABI and/or API changes.
GstMiniObject or GObject are possibilities as well but they will increase the
minimum struct size and require ABI changes.
Example code with python binding is something like this:
it = bin.iterate_sorted()
(elem, status) = it.next()
if status != Gst.IteratorResult.OK:
# use elem
Please note that the above code is merely an example demonstrating how
GstIterator access with introspection bindings. Overrides would be needed for
convenience and compatibility with gst-python so that you can just iterate over
the result directly.
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