Gst.Element.prototype.link_filtered
function link_filtered(dest:Gst.Element, filter:Gst.Caps):Boolean { // Gjs wrapper for gst_element_link_filtered() }
Links src to dest using the given caps as filtercaps. The link must be from source to destination; the other direction will not be tried. The function looks for existing pads that aren't linked yet. It will request new pads if necessary. If multiple links are possible, only one is established.
Make sure you have added your elements to a bin or pipeline with Gst.Bin.prototype.add before trying to link them.
- dest
the Gst.Element containing the destination pad.
- filter
the Gst.Caps to filter the link, or #NULL for no filter.
- Returns
TRUE if the pads could be linked, FALSE otherwise.