Gst.Pad.prototype.can_link

function can_link(sinkpad:Gst.Pad):Boolean {
    // Gjs wrapper for gst_pad_can_link()
}

Checks if the source pad and the sink pad are compatible so they can be linked.

sinkpad

the sink Gst.Pad.

Returns

TRUE if the pads can be linked.