[gstreamer-bugs] [Bug 638987] New: GstIterator needs a registered type

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Sat Jan 8 03:26:57 PST 2011


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

           Summary: GstIterator needs a registered type
    Classification: Desktop
           Product: GStreamer
           Version: git
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         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
properly.
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()

  while True:
     (elem, status) = it.next()
     if status != Gst.IteratorResult.OK:
        break
     # 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 mailing list