Gst.Pad.new
function new(name:String, direction:Gst.PadDirection):Gst.Pad { // Gjs wrapper for gst_pad_new() }
Creates a new pad with the given name in the given direction. 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.
- name
the name of the new pad.
- direction
the Gst.PadDirection of the pad.
- Returns
a new Gst.Pad, or NULL in case of an error. MT safe.