Gst.Pad.prototype.get_direction

function get_direction():Gst.PadDirection {
    // Gjs wrapper for gst_pad_get_direction()
}

Gets the direction of the pad. The direction of the pad is decided at construction time so this function does not take the LOCK.

Returns

the Gst.PadDirection of the pad. MT safe.