[gst-devel] Extending a pad template
David Schleef
ds at schleef.org
Thu Feb 12 12:40:06 CET 2004
On Thu, Feb 12, 2004 at 03:42:49PM +0100, in7y118 at public.uni-hamburg.de wrote:
> Both require a _remove_template - in the first case to make the template more
> general, in the second case to make it more special.
> In the first case we get around this by adding a padtemplate, so there's 2
> audio templates.
Or a _replace_template().
> In the second case we get around this (for now) by just not installing
> templates at all in the superclass (since it's not registered) or just using
> the more general template. videofilter even has a register_my_templates like
> function for that purpose.
Actually, for videofilter, the subclass has to provide information
before the pad templates can be created.
I'm not entirely convinced that use _remove_template() doesn't just
mean that your class structure is ill-designed.
dave...
More information about the gstreamer-devel
mailing list