GNOME Bugzilla – Bug 384546
Write override methods for gst.CollectPads
Last modified: 2012-12-17 11:33:21 UTC
gst.CollectPads don't have GstCollectPads methods: moonz ~ 23:25% python Python 2.5 (r25:exporté, Nov 11 2006, 12:32:43) [GCC 4.1.1 (Gentoo 4.1.1-r1)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import gst >>> gst.version() (0, 10, 11, 0) >>> coll = gst.CollectPads() >>> dir(coll) ['__class__', '__cmp__', '__delattr__', '__dict__', '__doc__', '__gdoc__', '__getattribute__', '__gobject_init__', '__grefcount__', '__gstrefcount__', '__gtype__', '__hash__', '__init__', '__module__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__str__', 'available', 'chain', 'collect', 'collect_range', 'connect', 'connect_after', 'connect_object', 'connect_object_after', 'debug', 'default_error', 'disconnect', 'disconnect_by_func', 'emit', 'emit_stop_by_name', 'error', 'freeze_notify', 'get_data', 'get_name', 'get_name_prefix', 'get_parent', 'get_path_string', 'get_property', 'handler_block', 'handler_block_by_func', 'handler_disconnect', 'handler_is_connected', 'handler_unblock', 'handler_unblock_by_func', 'has_ancestor', 'info', 'is_active', 'log', 'notify', 'props', 'remove_pad', 'set_data', 'set_flag', 'set_flushing', 'set_name', 'set_name_prefix', 'set_parent', 'set_property', 'start', 'stop', 'stop_emission', 'thaw_notify', 'unparent', 'unset_flag', 'warning'] >>> coll.add_pad Traceback (most recent call last):
+ Trace 93155
>>> When building gst-python from CVS, I get some errors like: Could not write method GstCollectPads.set_function: No ArgType for 'GstCollectPadsFunction' Could not write method GstCollectPads.add_pad: No ArgType for 'GstCollectData*' Could not write method GstCollectPads.peek: No ArgType for 'GstCollectData*' Could not write method GstCollectPads.pop: No ArgType for 'GstCollectData*' Could not write method GstCollectPads.read: No ArgType for 'GstCollectData*' Could not write method GstCollectPads.flush: No ArgType for 'GstCollectData*'
Indeed, those methods need override wrappers in gst-python. Changing title accordingly.
The reason why they're not wrapped is because they need to use the GstCollectData structure. That structure can't be easily wrapped since it's not a GBoxed. Blocking this bug against the relevant GStreamer(core) bug.
*** Bug 536192 has been marked as a duplicate of this bug. ***
Closing this bug now, gst-python is only an extension module to pygi now and this bug doesn't make much sense anymore in this context.