overrides: chain up to base __init__ in Pad override

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=757108
This commit is contained in:
Mark Nauwelaerts 2015-10-25 21:33:46 +01:00 committed by Thibault Saunier
parent 3ff39bb485
commit 1f26b4ad2b

View file

@ -98,10 +98,11 @@ Caps = override(Caps)
__all__.append('Caps')
class Pad(Gst.Pad):
def __init__(self):
def __init__(self, *args, **kwargs):
self._real_chain_func = None
self._real_event_func = None
self._real_query_func = None
super(Gst.Pad, self).__init__(*args, **kwargs)
def _chain_override(self, pad, parent, buf):
return self._real_chain_func(pad, buf)