issue with static pads

Yogesh Tyagi yogesh.bit2006 at gmail.com
Sun Nov 17 06:20:54 PST 2013


yes it is chaining up in finalize function:

G_OBJECT_CLASS (parent_class)->finalize (object);

but this code exists only in h264 decoder element and not in mpeg2 or other
decoder element.

Thanks,
Yogesh


On Sun, Nov 17, 2013 at 2:28 PM, Tim-Philipp Müller <t.i.m at zen.co.uk> wrote:

> 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
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20131117/3bba4b0c/attachment.html>


More information about the gstreamer-devel mailing list