GNOME Bugzilla – Bug 533865
gst_element_get_pad() should really be deprecated
Last modified: 2012-09-03 15:56:30 UTC
The gst_element_get_pad() documentation says "Usage of this function is not recommended as it is unclear if the reference to the result pad should be released" in http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstElement.html#gst-element-get-pad So this function is obviously completely broken. If it can't be made consistent then it should be properly deprecated, with advice about what to use instead.
2008-05-29 Sebastian Dröge <slomo@circular-chaos.org> * gst/gstelement.c: * gst/gstelement.h: Deprecated gst_element_get_pad() as it can't be used sanely. It's not clear of the reference to the resulting pad must be released later or not, resulting in possible leaks. Fixes bug #533865.
So... the depreciation happened, the 'advise' what to use instead though was missing, which makes porting code more difficult (it was dropped from 0.11/1.0 if I see this right).