Gst.GhostPad.new_from_template

function new_from_template(name:String, target:Gst.Pad, templ:Gst.PadTemplate):Gst.Pad {
    // Gjs wrapper for gst_ghost_pad_new_from_template()
}

Create a new ghostpad with target as the target. The direction will be taken from the target pad. The template used on the ghostpad will be @template.

Will ref the target.

name

the name of the new pad, or NULL to assign a default name.

target

the pad to ghost.

templ

the Gst.PadTemplate to use on the ghostpad.

Returns

a new Gst.Pad, or NULL in case of an error.