GNOME Bugzilla – Bug 419851
pad-added and pad-removed signals parameter type incorrect
Last modified: 2007-03-19 12:07:46 UTC
I'm working on bindings for PHP and ran across a small problem with the pad-added and pad-removed signals. Basically, they pass their parameters as G_TYPE_OBJECT instead of GST_TYPE_PAD.
Created attachment 84843 [details] [review] fix
The fix is correct but the problem is whether this fix is considered as breaking API or not. If it is, it will have to go in 0.11, else it can be commited.
The function prototype in the GstElementClass already has GstPad as an arg. I can't think of code that would meaningfully fail if the callback would be changed to a GstPad (which is also a GObject) moreso because the object in the callback has always _been_ a GstPad.
Don't see any reason not to commit that either.
Patch by: Evan Nemerson <evan at coeus dash group dot com> * gst/gstelement.c: (gst_element_class_init): Fix pad-added and pad-removed signal signatures so that the pad type is stated as GST_TYPE_PAD instead of G_TYPE_OBJECT. Fixes #419851.