issue with static pads
Tim-Philipp Müller
t.i.m at zen.co.uk
Sun Nov 17 00:58:57 PST 2013
Hi,
----- Original message -----
>
> In a gstreamer plugin I am maintaining, two static, one src and one sink
> pads are getting created in init function of a decoder element by
> following code: (snip)
> but these pads are not getting removed in finalize method .I have an
> event associated with src pad of this decoder element which is not
> getting freed up when decode element is removed because this event is
> set to be removed in the method which removes pads of this plugin.But
> there is no code explicitly calling the method meant to remove pads, for
> these static pads of decoder element so event is also not getting freed
> up.This is causing event leak in the system.
>
> It is not required to remove static pads when element finalizes? Can
> somebody provide some inputs on this problem?
Do you "chain up" in your finalize function? Like:
G_OBJECT_CLASS(parent_class)->finalize(obj);
Cheers
-Tim
More information about the gstreamer-devel
mailing list