issue with static pads

Sebastian Dröge sebastian at centricular.com
Fri Nov 22 11:20:24 PST 2013


On Mo, 2013-11-18 at 08:07 +0530, Yogesh Tyagi wrote:
> 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 and in fact there is no finalize method in other decoder
> elements.

If you have a finalize (or dispose) function, you must chain up like
that. But it's not required to have any of them if you don't need to
free anything.

If you mean that the pad is not freed, do you mean it also isn't removed
from the element? Or only that the instance is never freed and the
memory never released?

-- 
Sebastian Dröge <sebastian at centricular.com>
Centricular Ltd - http://www.centricular.com
Expertise, Straight from the Source
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 966 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20131122/46a377b3/attachment.pgp>


More information about the gstreamer-devel mailing list