Cannot override certain functions in GstBase
Submitted by Derek Kulinski
Link to original bug (#695089)
Description
Here is smallest code that reproduces the issue. Similar code did not cause issues in 0.10.
import gi
gi.require_version('Gst', '1.0')
from gi.repository import GstBase
class E(GstBase.BaseSink):
... def do_query(self,query):
... pass
...
/usr/lib64/python2.7/site-packages/gi/_gobject/init.py:119: Warning: g_param_spec_boxed: assertionG_TYPE_IS_BOXED (boxed_type)' failed type_register(cls, namespace.get('__gtype_name__')) /usr/lib64/python2.7/site-packages/gi/_gobject/__init__.py:119: Warning: g_object_class_install_property: assertion
G_IS_PARAM_SPEC (pspec)' failed
type_register(cls, namespace.get('gtype_name'))
Traceback (most recent call last):
File "<stdin>
", line 1, in<module>
File "/usr/lib64/python2.7/site-packages/gi/types.py", line 222, in init
cls._setup_vfuncs()
File "/usr/lib64/python2.7/site-packages/gi/types.py", line 154, in _setup_vfuncs
ambiguous_base.info.get_name()))
TypeError: Method do_query() on class GstBase.BaseSink is ambiguous with methods in base classes GstBase.BaseSink and Gst.Element
Version: 1.0.5