Element.linkPads

Links the two named pads of the source and destination elements. Side effect is that if one of the pads has no parent, it becomes a child of the parent of the other element. If they have different parents, the link fails.

class Element
bool
linkPads

Parameters

srcpadname string

the name of the #GstPad in source element or null for any pad.

dest gst.element.Element

the #GstElement containing the destination pad.

destpadname string

the name of the #GstPad in destination element, or null for any pad.

Return Value

Type: bool

true if the pads could be linked, false otherwise.