After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 384546 - Write override methods for gst.CollectPads
Write override methods for gst.CollectPads
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-python
git master
Other Linux
: Normal enhancement
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
: 536192 (view as bug list)
Depends on: 445453
Blocks:
 
 
Reported: 2006-12-10 22:42 UTC by Simon Lipp
Modified: 2012-12-17 11:33 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Simon Lipp 2006-12-10 22:42:51 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):
  • File "<stdin>", line 1 in <module>
AttributeError: 'gst.CollectPads' object has no attribute 'add_pad'
>>> 

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*'
Comment 1 Edward Hervey 2006-12-10 23:18:36 UTC
Indeed, those methods need override wrappers in gst-python. Changing title accordingly.
Comment 2 Edward Hervey 2007-06-08 11:06:00 UTC
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.
Comment 3 Sebastian Dröge (slomo) 2008-06-05 11:01:34 UTC
*** Bug 536192 has been marked as a duplicate of this bug. ***
Comment 4 Sebastian Dröge (slomo) 2012-12-17 11:33:21 UTC
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.