link_pads


Description:

[ CCode ( cname = "gst_element_link_pads_full" ) ]
public bool link_pads (string? srcpadname, Element dest, string? destpadname, PadLinkCheck flags = DEFAULT)

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.

Calling link_pads with flags == DEFAULT is the same as calling gst_element_link_pads and the recommended way of linking pads with safety checks applied.

This is a convenience function for link.

Parameters:

this

a Element containing the source pad.

srcpadname

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

dest

the Element containing the destination pad.

destpadname

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

flags

the PadLinkCheck to be performed when linking pads.

Returns:

true if the pads could be linked, false otherwise.




2022 vala-language.org