ElementClass.addStaticPadTemplateWithGtype

Adds a pad template to an element class based on the static pad template @templ. This is mainly used in the _class_init functions of element implementations. If a pad template with the same name already exists, the old one is replaced by the new one.

class ElementClass
void
addStaticPadTemplateWithGtype

Parameters

staticTempl StaticPadTemplate

#GstStaticPadTemplate to add as pad template to the element class.

padType GType

The #GType of the pad to create

Meta

Since

1.14