Gst.Element.prototype.add_pad

function add_pad(pad:Gst.Pad):Boolean {
    // Gjs wrapper for gst_element_add_pad()
}

Adds a pad (link point) to element. pad's parent will be set to element; see Gst.set_parent for refcounting information.

Pads are not automatically activated so elements should perform the needed steps to activate the pad in case this pad is added in the PAUSED or PLAYING state. See Gst.set_active for more information about activating pads.

The pad and the element should be unlocked when calling this function.

This function will emit the Gst.pad-added signal on the element.

pad

the Gst.Pad to add to the element.

Returns

true if the pad could be added. This function can fail when a pad with the same name already existed or the pad already had another parent. MT safe.