Element.addPad

bool addPad(gst.pad.Pad pad)

Adds a pad (link point) to element. pad's parent will be set to element; see [gst.object.ObjectWrap.setParent] for refcounting information.

Pads are automatically activated when added in the PAUSED or PLAYING state.

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

This function will emit the #GstElement::pad-added signal on the element.

Parameters

padthe #GstPad 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.