<div dir="ltr">yes it is chaining up in finalize function:<div><br></div><div><span style="color:rgb(0,0,0);font-family:monospace;font-size:11px">G_OBJECT_CLASS </span><span class="" style="color:rgb(0,0,0);font-family:monospace;font-size:11px">(</span><span style="color:rgb(0,0,0);font-family:monospace;font-size:11px">parent_class</span><span class="" style="color:rgb(0,0,0);font-family:monospace;font-size:11px">)</span><span class="" style="font-weight:bold;color:rgb(0,0,0);font-family:monospace;font-size:11px">-></span><span style="color:rgb(0,0,0);font-family:monospace;font-size:11px">finalize </span><span class="" style="color:rgb(0,0,0);font-family:monospace;font-size:11px">(</span><span style="color:rgb(0,0,0);font-family:monospace;font-size:11px">object</span><span class="" style="color:rgb(0,0,0);font-family:monospace;font-size:11px">);</span></div>
<div><span class="" style="color:rgb(0,0,0);font-family:monospace;font-size:11px"><br></span></div><div><span class="" style="color:rgb(0,0,0);font-family:monospace;font-size:11px">but this code exists only in h264 decoder element and not in mpeg2 or other decoder element.</span></div>
<div><span class="" style="color:rgb(0,0,0);font-family:monospace;font-size:11px"><br></span></div><div><span class="" style="color:rgb(0,0,0);font-family:monospace;font-size:11px">Thanks,</span></div><div><span class="" style="color:rgb(0,0,0);font-family:monospace;font-size:11px">Yogesh</span></div>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Nov 17, 2013 at 2:28 PM, Tim-Philipp Müller <span dir="ltr"><<a href="mailto:t.i.m@zen.co.uk" target="_blank">t.i.m@zen.co.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<div class="im"><br>
----- Original message -----<br>
><br>
> In a gstreamer plugin I am maintaining, two static, one src and one sink<br>
> pads are getting created in init function of a decoder element   by<br>
</div>> following code: (snip)<br>
<div class="im">> but these pads are not getting removed in finalize method .I have an<br>
> event associated with src pad of this decoder element which is not<br>
> getting freed up when decode element is removed because this event is<br>
> set to be removed in the method which removes pads of this plugin.But<br>
> there is no code explicitly calling the method meant to remove pads, for<br>
> these static pads of decoder element so event is also not getting freed<br>
> up.This is causing event leak in the system.<br>
><br>
> It is not required to remove static pads when element finalizes? Can<br>
> somebody provide some inputs on this problem?<br>
<br>
</div>Do you "chain up" in your finalize function? Like:<br>
<br>
G_OBJECT_CLASS(parent_class)->finalize(obj);<br>
<br>
Cheers<br>
 -Tim<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div><br></div>