Gst.Object.default_deep_notify() TypeError: argument pspec: Expected GObject.ParamSpec, but got gobject.GParamSpec
Hey there, I ran into a bug with what I think is the introspection aspect of pygobject.
I'm trying to mirror what I have in C, but this fails in my Python script:
>>> self.pipeline.connect('deep-notify', Gst.Object.default_deep_notify, None)
TypeError: argument pspec: Expected GObject.ParamSpec, but got gobject.GParamSpec
For reference, the C equivalent, which works fine:
g_signal_connect( pipeline, "deep-notify", G_CALLBACK( gst_object_default_deep_notify ), NULL );
It appears others have run into similar issues.
In addition, when trying to pass a blank GObject.ParamSpec
into the default_deep_notify callback, it also fails with:
def _default_deep_notify_wrapper(self, object, orig, pspec, excluded_props):
pspecB = GObject.ParamSpec()
print(dir(pspecB))
print(dir(pspec))
Gst.Object.default_deep_notify(object, orig, pspecB, excluded_props)
>>> self.pipeline.connect('deep-notify', self._default_deep_notify_wrapper, None)
TypeError: expected GObject but got <gi.repository.GObject.ParamSpec object at 0xb3636250>