Gst.Pad.new_from_static_template
function new_from_static_template(templ:Gst.StaticPadTemplate, name:String):Gst.Pad { // Gjs wrapper for gst_pad_new_from_static_template() }
Creates a new pad with the given name from the given static template. If name is NULL, a guaranteed unique name (across all pads) will be assigned. This function makes a copy of the name so you can safely free the name.
- templ
the Gst.StaticPadTemplate to use
- name
the name of the element
- Returns
a new Gst.Pad, or NULL in case of an error.