Element.linkPadsFiltered

bool linkPadsFiltered(string srcpadname, gst.element.Element dest, string destpadname = null, gst.caps.Caps filter = null)

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.

Parameters

srcpadnamethe name of the #GstPad in source element or null for any pad.
destthe #GstElement containing the destination pad.
destpadnamethe name of the #GstPad in destination element or null for any pad.
filterthe #GstCaps to filter the link, or null for no filter.

Returns

true if the pads could be linked, false otherwise.