Element.addPad

Adds a pad (link point) to element. pad's parent will be set to element; see gst_object_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_pad_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 GstElement::pad-added signal on the element.

class Element
int
addPad

Parameters

pad Pad

the GstPad to add to the element.

Return Value

Type: int

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.

Meta