add_pad_template
Description:
[ CCode ( cname = "gst_element_class_add_pad_template" ) ]
public class void add_pad_template (PadTemplate templ)
public class void add_pad_template (PadTemplate templ)
Adds a padtemplate to an element class.
This is mainly used in the _class_init functions of classes. If a pad template with the same name as an already existing one is added the old one is replaced by the new one.
templ
's reference count will be incremented, and any floating reference will be removed (see gst_object_ref_sink
)
Parameters:
this |
the Element to add the pad template to. |
templ |
a PadTemplate to add to the element class. |