Gst.Bin.prototype.find_unlinked_pad

function find_unlinked_pad(direction:Gst.PadDirection):Gst.Pad {
    // Gjs wrapper for gst_bin_find_unlinked_pad()
}

Recursively looks for elements with an unlinked pad of the given direction within the specified bin and returns an unlinked pad if one is found, or NULL otherwise. If a pad is found, the caller owns a reference to it and should use Gst.unref on the pad when it is not needed any longer.

direction

whether to look for an unlinked source or sink pad

Returns

unlinked pad of the given direction, or NULL.