element: Inherit element metadata and pad templates from parent classes
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Sat, 16 Apr 2011 13:03:33 +0000 (15:03 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Sat, 16 Apr 2011 13:59:35 +0000 (15:59 +0200)
commitaad57970deb6a6212dbd0a7c046d656d37dc9c09
treec30ab628735d6093efebd3bed5e01a10a76dd4eb
parent8bfdd8c817315059f038be60ea21d02c2512eda0
element: Inherit element metadata and pad templates from parent classes

This allows to add pad templates and set metadata in class_init instead of
base_init. base_init is a concept that is not supported by almost all
languages and copying the templates/metadata for subclasses is the more
intuitive way of doing things.

Subclasses can override pad templates of parent classes by adding a new
template with the same now.

Also gst_element_class_add_pad_template() now takes ownership of the
pad template, which was assumed by all code before anyway.

Fixes bug #491501.
docs/random/porting-to-0.11.txt
gst/gstelement.c
gst/gstpadtemplate.c