Gst.Pad.prototype.get_allowed_caps
function get_allowed_caps():Gst.Caps { // Gjs wrapper for gst_pad_get_allowed_caps() }
Gets the capabilities of the allowed media types that can flow through pad and its peer.
The allowed capabilities is calculated as the intersection of the results of calling Gst.query_caps on pad and its peer. The caller owns a reference on the resulting caps.
- Returns
the allowed Gst.Caps of the pad link. Unref the caps when you no longer need it. This function returns NULL when pad has no peer. MT safe.