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 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 pad-added signal on the element.

class Element
bool
addPad

Parameters

pad Pad

the gstreamer.Pad to add to the element.

Return Value

Type: bool

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.