[gstreamer-bugs] [Bug 385841] implement gst.TypeFindFactory.get_extensions

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Sun Dec 17 11:16:23 PST 2006


Do not reply to this via email (we are currently unable to handle email
responses and they get discarded).  You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=385841

  GStreamer | gst-python | Ver: 0.10.x


René Stadler changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #78406|0                           |1
        is obsolete|                            |




------- Comment #5 from René Stadler  2006-12-17 19:14 UTC -------
Created an attachment (id=78529)
 --> (http://bugzilla.gnome.org/attachment.cgi?id=78529&action=view)
Add codegen support for gchar*-array return type

Oops, gchar-array is just gchar*.  What we need is gchararray-array,
gchar*-array, gcharpointer-array, str-array or strv or something.  Pick your
favorite.  I picked gchar*-array for this updated patch, but feel free to
object.

This patch is nicer: I found that we can get rid of an override.  This also
returns tuples instead of lists, which is consistent with what pygtk does in
its overrides.  Furthermore, I don't need to comment out the get_protocols
virtual definition since we no longer claim to be able to handle gchar**
returns.

Updated list of changes:

        * gst/arg-types.py: (StringArrayArg, StringArrayArg.write_return):
        Add support for gchar*-array return type (which occurs in the C API as
        gchar**).
        * gst/gst.defs:
        Change return type from gchar** to gchar*-array for
        GstElementFactory.get_uri_protocols, GstTypeFindFactory.get_extensions
        and GstURIHandler.get_protocols method definitions.
        * gst/gst.override: (_wrap_gst_uri_handler_get_protocols):
        Remove the now unneeded override for gst_uri_handler_get_protocols.


-- 
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email




More information about the Gstreamer-bugs mailing list