[Bug 695089] Cannot override certain functions in GstBase

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed Aug 9 14:18:24 UTC 2017


https://bugzilla.gnome.org/show_bug.cgi?id=695089

Danilo <danmendes977 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |danmendes977 at gmail.com

--- Comment #6 from Danilo <danmendes977 at gmail.com> ---
I'm trying to understand: the method _setup_vfuncs in MetaClassHelper class in
types.py file first get the base classes in order using __mro__ and take just
the first class that has a virtual method with the name of the overwriting
method. After that, it checks if there are virtual methods with the same name
more deeply in another base class, and if found, just give up. But when a class
inherits another one, the methods of the base class with the same name as the
methods of the derived class are overwritten. Hence, why check for this
ambiguity, or better, it is really a ambiguity?

More cleary, is really necessary run find_vfunc_conflict_in_bases (line 108 at
types.py)?

Btw, I removed this check as workaround and worked (at least in my case).

-- 
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