Element.linkPadsFiltered

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. If caps is not NULL, makes sure that the caps of the link is a subset of caps.

class Element
bool
linkPadsFiltered

Parameters

srcpadname string

the name of the gstreamer.Pad in source element or NULL for any pad.

dest Element

the gstreamer.Element containing the destination pad.

destpadname string

the name of the gstreamer.Pad in destination element or NULL for any pad.

filter Caps

the gstreamer.Caps to filter the link, or NULL for no filter.

Return Value

Type: bool

TRUE if the pads could be linked, FALSE otherwise.